function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
muralimurali 

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
dhruvadhruva
You want to use the WhatId parameter to associate an Activity with an Account/Opportunity. Or WhoId for Contact/Lead.