3

There is not much documentation yet surrounding the release of Scheduled Flows (Winter 20).

This article (https://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_forcecom_flow_fbuilder_start.htm) states that "When your flow starts, a flow interview runs for each record that matches your filter—no looping required. The matching record is stored in the $Record global variable, so you can reference the variable or its fields throughout your flow."

So my question is this. Does anyone know how this relates to bulification? If it runs the interview via the $Record global variable, then do I assume that I don't bulkify my update to a set of records, but rather have an Update Record element in the flow for every record, and then assume that the schedule automatically wraps these up into a single Update?

Also, do I assume that the $Record global has access to all fields on that object during the interview? Since I am not performing a "Get" and therefore are not able to specify the fields I need to complete my operations?

2
  • 1
    this question could easily be answered by an experiment by using a scheduled flow that operates on 2+ recs and updates them (where the recs have a trigger) - the debug log will clearly indicate whether they are bulkified
    – cropredy
    Commented Nov 12, 2019 at 22:50
  • Awesome link here explaining debug logs in case someone still needs it: sfdcstop.com/2020/03/… Commented May 6, 2022 at 8:59

2 Answers 2

3

A user from the Process Automation group came back to me with this:

1Q: Yes. Design the flow as if you are working on a single record. And scheduled flow does the bulkification for you.

2Q: Yes. You have access to all the fields on the record.

3Q: Scheduled Flow is run as the "Automated Process" user. This is different from Default Workflow User

1

You are correct; for anyone else who would stumble upon this thread, I would just add that when you debug the Flow, it seems as though it only runs on the first record (I struggled for hours on this). You actually have to activate it for it to run on all the records specified in the Start Element. Therefore, if you want to test it, schedule it to run in the next couple of minutes.

You must log in to answer this question.

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