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
Stephen ElkindStephen Elkind 

Question about locked access rights.

Please help?   We have the "Contract Manager" with the ability to create contracts in the draft stage.  Since he is creating the contract and made the potential sale, we have a field called "Credited To", into which we would like his name automatically populated when he creates the contract.  This is easy and worked fine.  We created a flow that works perfectly.  However, we do not want him to be able to change this field from someone else to his name.  So we tightened up security for his profile such that he cannot change that field and set the contract of someone else to his name.  The problem is that since he no longer has the ability to edit this "Credited To" field, the system will no longer allow his user to populate that field with his name when he creates the contract and the system shoudl automatically populate that field.  Effectrively, since he is initiating teh "create contract flow", then system thinks HE is editing that field.  How can a field be set so when a user initiates a flow to create a record (contract), it will populate a field that the user is not able to subsequently edit?  This seems basic, but perhaps we are not understanding the security settings correctly.  Help?  
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Stephen, Hope it will be helpful.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar
Stephen ElkindStephen Elkind
Rahul - thanks for the reply, but if I enable "Modify All Data" permission OR "Modify All" in object permission, then that will allow the user to MODIFY the "Credited to" field when it belongs to another user, correct?  Am I mistaken?  The intent is:

1) Restrict the user from modifying this field
2) When a user crates a contract by calling the automated flow ("Create Contract from Opportunity"), have the user's name inserted into this "Credited to" field.

Stephen