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
lapaullapaul 

how to share a record programmatically

Hi,

How do I share a record with another user programmatically? I'm referring to the manual sharing button functionality. Are there any sample codes out there? please help.

 

thanks

lapaullapaul

Thanks for the Sharing button info. Its very helpful.

Now my next step is to write a trigger to do the sharing after a new record is created. You have any sample codes or tips on how to create this kind of trigger? How do you capture the newly created record ID? please advice.

 

thanks