Salesforce Fact #375 | Restriction rules in flow execution context

Restriction rules restrict the visibility of records for particular users by specifying filter conditions. Do you know the same is also ensured while getting records in flow.

If the flow is running is user context or in with sharing enforcing the record level access, the restriction rules are maintained. But in case of system context the rules are not applied.

In this example, we have a custom object Country and we have a restriction rule that if a user is having a particular custom permission assigned he would be able to see only India record. Now, to check this in flow, if the flow is run in user context the user is able to get only 1 record and if it runs in system context he gets access to all the records.

Attached are the screenshots.


 








Comments

Popular posts from this blog