• murali
  • NEWBIE
  • 0 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 2
    Replies
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

Message Edited by murali on 01-02-2006 04:33 AM

Message Edited by murali on 01-02-2006 04:38 AM

  • January 02, 2006
  • Like
  • 0
hi...

can anybody give the code for Updating the Task values using Partner API Code(SalesforceAPI 6.0)

thanks and regards,
Murali
  • December 30, 2005
  • Like
  • 0
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
  • December 23, 2005
  • Like
  • 0
hi,

Can any body tell the query for viewing all Tasks in Ascending or Descending order.

thanks and regards,
Murali
  • December 19, 2005
  • Like
  • 0
hi..

can anybody tell the port number for Salesforce Webservice...
  • December 19, 2005
  • Like
  • 0
I am having problems while connecting to SalesForce Using Some Internet Connection.
If I know the Port number so that they ll configure..
  • December 17, 2005
  • Like
  • 0
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
  • December 16, 2005
  • Like
  • 0
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

Message Edited by murali on 01-02-2006 04:33 AM

Message Edited by murali on 01-02-2006 04:38 AM

  • January 02, 2006
  • Like
  • 0
hi..

can anybody tell the port number for Salesforce Webservice...
  • December 19, 2005
  • Like
  • 0