3

Does anybody know why the "How to Run the Flow" option is not available in Record-Triggered Flows? This flow should run in System Context Without Sharing—Access All Data. Currently we have to set Modify All permission to user's profile to make sure this flow runs.

enter image description here

2 Answers 2

5

Record triggered flows always run in system mode without sharing, so it is not configurable on the flow itself. The same applies to the Scheduled flow and Process Builder

Recommend reviewing doc

I will reach out to the Salesforce team that owns this feature to have this information added to our documentation too and will update this thread as I have more inputs.

UPDATE: The documentation has been updated to reflect Record-triggered : System, without sharing

7
  • The Salesforce documentation still makes no mention of Record-Triggered flows. Nov 16, 2021 at 22:18
  • Apologies. This got lost. I'm checking now ....
    – Swetha
    Nov 17, 2021 at 12:12
  • 2
    @Swetha The documentation still doesn't clarify record-triggered flows. As Jason Kuzmak mentions in his answer, we are still getting Flow failures that indicate the flow is running in user context and not system context. Feb 9 at 17:27
  • Running user and system context are two different things; flows (almost) always run as the User who started the flow (whether a screen flow or a triggered flow via a record edit by the user). System context means that access checks on entities are not enforced; System context without sharing means that sharing rules are also not applied.
    – Swetha
    Feb 15 at 11:03
  • 1
    Documentation says Record-triggered System, without sharing Mar 21 at 19:58
2

At time of writing this, it doesn't seem like it's currently possible to run record-triggered flows in system mode. You can demonstrate this by creating a flow that updates another record the user does not have edit rights to. That user will receive an insufficient privileges error when triggering the flow.
This is something I found out after recreating several of my Process Builder flows in Flow Designer. I'm assuming this is something they'll change before they do away with Process Builder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.