-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
7Questions
-
2Replies
update the Task Values using Partner API
hi...
I m using Partner API.
while Updating the Task values into SF. It is Showing "Unable to create/update fields: IsClosed, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp. Please check the security settings of this field and verify that it is read/write for your profile".
I m updating the values are OwnerId,ActivityDate,Priority,Status,Subject,Description,WhoId,WhatId and some custom fields.
i m passing Activity Date in terms of YYYY-MM-DD
Example....
First I m using describeSobject result:
DescribeSObjectResult dsr = oSforceP.describeObjectResult("Task");
string strDataType = CreateSelectList(dsr);/// these are the datafields.
sObject[] objUpdatedTask = oSforceP.getObjectFieldusingID(strDataType,TaskId,"Task");// here i m getting Task Values for particular Id.
Here I m assigning Updated values....
if(objUpdatedTask[0].Any[4].LocalName=="ActivityDate")
objUpdatedTask[0].Any[4].InnerText =strFinalDate;
if(objUpdatedTask[0].Any[7].LocalName=="OwnerId")
objUpdatedTask[0].Any[7].InnerText = ddlAssignTo.SelectedItem.Value;
if(objUpdatedTask[0].Any[6].LocalName=="Priority")
objUpdatedTask[0].Any[6].InnerText = ddlPriority1.SelectedItem.Value;
activityUpdated = oSforceP.updateAllTaskObject(objUpdatedTask[0]);
updateAllTaskObject is another function:
public bool updateAllTaskObject(sObject update_task)
{
bool bRet = false;
try
{
SaveResult[] saveResults = oSforceP.update(new sObject[] {update_task});
if(saveResults != null)
{
bRet = saveResults[0].success;
}
}
catch(Exception e)
{
bRet = false;
throw e;
}
return bRet;
}
I m getting Error Message as "Unable to create/update fields: AccountId, IsClosed, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp. Please check the security settings of this field and verify that it is read/write for your profile."
Please give me a solution for this thing.
thanks and regards,
Murali
I m using Partner API.
while Updating the Task values into SF. It is Showing "Unable to create/update fields: IsClosed, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp. Please check the security settings of this field and verify that it is read/write for your profile".
I m updating the values are OwnerId,ActivityDate,Priority,Status,Subject,Description,WhoId,WhatId and some custom fields.
i m passing Activity Date in terms of YYYY-MM-DD
Example....
First I m using describeSobject result:
DescribeSObjectResult dsr = oSforceP.describeObjectResult("Task");
string strDataType = CreateSelectList(dsr);/// these are the datafields.
sObject[] objUpdatedTask = oSforceP.getObjectFieldusingID(strDataType,TaskId,"Task");// here i m getting Task Values for particular Id.
Here I m assigning Updated values....
if(objUpdatedTask[0].Any[4].LocalName=="ActivityDate")
objUpdatedTask[0].Any[4].InnerText =strFinalDate;
if(objUpdatedTask[0].Any[7].LocalName=="OwnerId")
objUpdatedTask[0].Any[7].InnerText = ddlAssignTo.SelectedItem.Value;
if(objUpdatedTask[0].Any[6].LocalName=="Priority")
objUpdatedTask[0].Any[6].InnerText = ddlPriority1.SelectedItem.Value;
activityUpdated = oSforceP.updateAllTaskObject(objUpdatedTask[0]);
updateAllTaskObject is another function:
public bool updateAllTaskObject(sObject update_task)
{
bool bRet = false;
try
{
SaveResult[] saveResults = oSforceP.update(new sObject[] {update_task});
if(saveResults != null)
{
bRet = saveResults[0].success;
}
}
catch(Exception e)
{
bRet = false;
throw e;
}
return bRet;
}
I m getting Error Message as "Unable to create/update fields: AccountId, IsClosed, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp. Please check the security settings of this field and verify that it is read/write for your profile."
Please give me a solution for this thing.
thanks and regards,
Murali
Message Edited by murali on 01-02-2006 04:33 AM
Message Edited by murali on 01-02-2006 04:38 AM
-
- murali
- January 02, 2006
- Like
- 0
- Continue reading or reply
Updating the task values using Partner API.
hi...
can anybody give the code for Updating the Task values using Partner API Code(SalesforceAPI 6.0)
thanks and regards,
Murali
can anybody give the code for Updating the Task values using Partner API Code(SalesforceAPI 6.0)
thanks and regards,
Murali
-
- murali
- December 30, 2005
- Like
- 0
- Continue reading or reply
not getting results on Custom Fields..
hi...
I m using Partner WSDL,
DescribeSObjectResult dsr = oSforceP.describeObjectResult("Task");
Field[] fdTask = dsr.fields;
here i m getting all the Task results except Custom fileds..
Can anybody Tell the Solution for this thing.
i want a solution without using DescribeLayoutResult.
thanks and regards,
Murali
I m using Partner WSDL,
DescribeSObjectResult dsr = oSforceP.describeObjectResult("Task");
Field[] fdTask = dsr.fields;
here i m getting all the Task results except Custom fileds..
Can anybody Tell the Solution for this thing.
i want a solution without using DescribeLayoutResult.
thanks and regards,
Murali
-
- murali
- December 23, 2005
- Like
- 0
- Continue reading or reply
sorting in Tasks
hi,
Can any body tell the query for viewing all Tasks in Ascending or Descending order.
thanks and regards,
Murali
Can any body tell the query for viewing all Tasks in Ascending or Descending order.
thanks and regards,
Murali
-
- murali
- December 19, 2005
- Like
- 0
- Continue reading or reply
port number for connecting to Sforce WebService
hi..
can anybody tell the port number for Salesforce Webservice...
can anybody tell the port number for Salesforce Webservice...
-
- murali
- December 19, 2005
- Like
- 0
- Continue reading or reply
can any body tell the port number for SalesForce site
I am having problems while connecting to SalesForce Using Some Internet Connection.
If I know the Port number so that they ll configure..
If I know the Port number so that they ll configure..
-
- murali
- December 17, 2005
- Like
- 0
- Continue reading or reply
problem with Account Id
hi,
while creating and Inserting Activity using AccountId, I m getting Error:
INVALID_FIELD_FOR_INSERT_UPDATE "Unable to create/update fields: AccountId. Please check the security settings of this field and verify that it is read/write for your profile".
can u give the solution for this thing.
thanks,
murali
while creating and Inserting Activity using AccountId, I m getting Error:
INVALID_FIELD_FOR_INSERT_UPDATE "Unable to create/update fields: AccountId. Please check the security settings of this field and verify that it is read/write for your profile".
can u give the solution for this thing.
thanks,
murali
-
- murali
- December 16, 2005
- Like
- 0
- Continue reading or reply
update the Task Values using Partner API
hi...
I m using Partner API.
while Updating the Task values into SF. It is Showing "Unable to create/update fields: IsClosed, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp. Please check the security settings of this field and verify that it is read/write for your profile".
I m updating the values are OwnerId,ActivityDate,Priority,Status,Subject,Description,WhoId,WhatId and some custom fields.
i m passing Activity Date in terms of YYYY-MM-DD
Example....
First I m using describeSobject result:
DescribeSObjectResult dsr = oSforceP.describeObjectResult("Task");
string strDataType = CreateSelectList(dsr);/// these are the datafields.
sObject[] objUpdatedTask = oSforceP.getObjectFieldusingID(strDataType,TaskId,"Task");// here i m getting Task Values for particular Id.
Here I m assigning Updated values....
if(objUpdatedTask[0].Any[4].LocalName=="ActivityDate")
objUpdatedTask[0].Any[4].InnerText =strFinalDate;
if(objUpdatedTask[0].Any[7].LocalName=="OwnerId")
objUpdatedTask[0].Any[7].InnerText = ddlAssignTo.SelectedItem.Value;
if(objUpdatedTask[0].Any[6].LocalName=="Priority")
objUpdatedTask[0].Any[6].InnerText = ddlPriority1.SelectedItem.Value;
activityUpdated = oSforceP.updateAllTaskObject(objUpdatedTask[0]);
updateAllTaskObject is another function:
public bool updateAllTaskObject(sObject update_task)
{
bool bRet = false;
try
{
SaveResult[] saveResults = oSforceP.update(new sObject[] {update_task});
if(saveResults != null)
{
bRet = saveResults[0].success;
}
}
catch(Exception e)
{
bRet = false;
throw e;
}
return bRet;
}
I m getting Error Message as "Unable to create/update fields: AccountId, IsClosed, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp. Please check the security settings of this field and verify that it is read/write for your profile."
Please give me a solution for this thing.
thanks and regards,
Murali
I m using Partner API.
while Updating the Task values into SF. It is Showing "Unable to create/update fields: IsClosed, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp. Please check the security settings of this field and verify that it is read/write for your profile".
I m updating the values are OwnerId,ActivityDate,Priority,Status,Subject,Description,WhoId,WhatId and some custom fields.
i m passing Activity Date in terms of YYYY-MM-DD
Example....
First I m using describeSobject result:
DescribeSObjectResult dsr = oSforceP.describeObjectResult("Task");
string strDataType = CreateSelectList(dsr);/// these are the datafields.
sObject[] objUpdatedTask = oSforceP.getObjectFieldusingID(strDataType,TaskId,"Task");// here i m getting Task Values for particular Id.
Here I m assigning Updated values....
if(objUpdatedTask[0].Any[4].LocalName=="ActivityDate")
objUpdatedTask[0].Any[4].InnerText =strFinalDate;
if(objUpdatedTask[0].Any[7].LocalName=="OwnerId")
objUpdatedTask[0].Any[7].InnerText = ddlAssignTo.SelectedItem.Value;
if(objUpdatedTask[0].Any[6].LocalName=="Priority")
objUpdatedTask[0].Any[6].InnerText = ddlPriority1.SelectedItem.Value;
activityUpdated = oSforceP.updateAllTaskObject(objUpdatedTask[0]);
updateAllTaskObject is another function:
public bool updateAllTaskObject(sObject update_task)
{
bool bRet = false;
try
{
SaveResult[] saveResults = oSforceP.update(new sObject[] {update_task});
if(saveResults != null)
{
bRet = saveResults[0].success;
}
}
catch(Exception e)
{
bRet = false;
throw e;
}
return bRet;
}
I m getting Error Message as "Unable to create/update fields: AccountId, IsClosed, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp. Please check the security settings of this field and verify that it is read/write for your profile."
Please give me a solution for this thing.
thanks and regards,
Murali
Message Edited by murali on 01-02-2006 04:33 AM
Message Edited by murali on 01-02-2006 04:38 AM
- murali
- January 02, 2006
- Like
- 0
- Continue reading or reply
port number for connecting to Sforce WebService
hi..
can anybody tell the port number for Salesforce Webservice...
can anybody tell the port number for Salesforce Webservice...
- murali
- December 19, 2005
- Like
- 0
- Continue reading or reply