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
Rocio VivancoRocio Vivanco 

Update a field without saving the record and use the field in a sharing rule

Hi all,

I was wondering if there is a possibility to update a field with the value on another field without saving the record and use this field in a sharing rule.

For example, I have the field X in the object Account. The value is 'Value X'. I have a field X in the object Opportunity which should have the same value as in the X field in the object Account, that means, the value would be in this case 'Value X' as well. Now, I would like to have a process or something suitable to update the value in field X of the Opportunity everytime the value in the field X of the Account changes, all this without saving the record (that's why I can not use a workflow rule in this case). 

On the other hand, I need to use the value in the field X of the Opportunity in a sharing rule.

Is there a possibility to implement these requirements in Salesforce? how?.