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
sfdclivesfdclive 

re: record sharing using trigger

Hi,

 

I have a junction object linking account and contact, have a custom picklist field status on account. if account status equal to approved then the record should be shared to contact which is relation with account through junction object.

 

pls give me some help in writing trigger.

Sonam_SFDCSonam_SFDC

Hi SFDC Live,

 

You have mentioned that the Accoutn record should be shared to the contact but as per Sharing rules and guidelines - records can be shared within SF users and not contacts as tnhey will not have access to salesforce.

 

Please let me know if I have understood your ORG setup correctly - I think I am missing something here..

 

An example if you can provide, will be helpful..