4

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

3 Answers 3

9

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. Commented Nov 16, 2021 at 22:18
  • Apologies. This got lost. I'm checking now .... Commented 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. Commented Feb 9, 2022 at 17:27
  • 1
    Documentation says Record-triggered System, without sharing Commented Mar 21, 2022 at 19:58
  • 1
    This is super frustrating. Documentation still says "Record-triggered" flows run in "System context without sharing" even though that is clearly not correct. help.salesforce.com/s/… Commented Aug 11, 2022 at 17:12
5

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.

1
  • For reference: the documentation has been updated to state that record-triggered flows run in system context. Commented Mar 13 at 16:31
0

For anyone still running into this issue - You can call an autolaunched flow from within your record triggered flow. Autolaunched flows can be run as System Mode No Sharing. Instead of having your record-triggered flow running with overpowered permissions, create a subflow for the absolute minimum required work. You can pass info in and out of this subflow. This is a good thing.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .