You need to sign in to do that
Don't have an account?
Rich.ax131
Task creation
I'm trying to automate task creation, but I'm getting an error message indicating that the AccountId field is not updateable. If I don't set a value for AccountId the task appears to be created without error, but I can't find it anywhere. Without the AccountId association I'm not sure what the "tie" is between the task and anythng else.
Any suggestions?
Thanks,
Rich
Any suggestions?
Thanks,
Rich
Ideas?
I'm dying here . . .
You are correct that the accountid field is not updatable. It is generated automatically if you assign the task to a contact.
However, what you are looking for is the WHATID field. You set this field with the account id if you wish to assign the task to an account.
========================================================================================
To dive deeper into the Task object:
Since the task object can be assigned to either Accounts, Opportunities, Contacts or Leads there are two generic fields to set for assignment. If you are assigning the Task to a person (Contact/Lead) you set the WHOID; if you are assigning the Task to an object (Account/Opportunity) you set the WHATID.
Admittedly, the autogenerated AccountId field is confusing because of the name collision. At least the describe shows it not to be updateable which helps a little.
Cheers.
Rich