How to Run 2 or more records at a time in flow designer

Community Alums
Not applicable

Hi All,

How can we run 2 or more records in the flow designer at a time. As I'm getting the records using "For each". I want to run both at a time. Right now, only 1 is getting triggered and its waiting for the action to be completed. I need both the actions to run a time using 2 records. 

Example: Using each record I want to create a new parallel task for the catalog item. But its triggering only 1 at a time. 

Note: I cant use run parallel because based on the record I need to run the flow. 

Can anyone help me on this?

 

RipunjaiGurava_0-1709209445436.png

RipunjaiGurava_1-1709209753244.png

 

Thanks,

Ripunjai.

3 REPLIES 3

BHAGYESH BHOSAL
Tera Expert

hello @Community Alums ,

 

Could you please provide some more requirement on the same ?

 

If you have the fixed number of records every time  then you can run the Parallel step for all . but if not then you have to use for each loop for every record .

Community Alums
Not applicable

Hi @BHAGYESH BHOSAL 

I dont have any fixed records. The record number can vary. So, I need to check if I require parallel task or not. If parallel task is true. I need to run those records at a time. For now, I'm using for each. But Its check for each record its creating a task and waiting till the action is completed. This is stopping me to trigger parallel task.

Thanks,

Ripunjai.

sasi_v
Tera Guru

Hi @Community Alums ,

I believe that if you use a single flow, you won't be able to accomplish this

Instead of using 'For Each' flow logic, create a custom action ,Pass the output of Lookup records to this action and configure script logic to trigger  another subflow or flow parallelly with the required inputs. The subflow or flow should consist of actions to create task.

 

Please refer below community article to trigger a flow from script.

https://www.servicenow.com/community/developer-forum/how-to-call-a-flow-from-another-flow/m-p/1875570