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
vishvish 

error trying to create a lead: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

When I am trying to create a lead using
 
Code:
         sObjects[0] = lead;
         SaveResult[] saveResult = binding.create(sObjects);

 
i get the error 'CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY'. Is this because of a setting in the permissions?
 
Thanks
SuperfellSuperfell
Your profile doesn't have create permission on Leads. (See the Crud permissions grid at the bottom of the profile page).