We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

multiple approvals not triggering from a list collector variable

Sri56
Tera Contributor

Hi Team,

 

I have one list collector variable for 'additional approver' field which has defined in a flow to trigger approvals.

Its working for one record.

However not for multiple records, i tried with Look up records action with for each logic but still didn't work.

Sri56_0-1782716585196.png

 

 

Can anyone please help on how to fix the same.

 

Thanks,

Sri

20 REPLIES 20

Sri56
Tera Contributor

Hi,

 

Please find the screenshot:

Sri56_0-1782737296093.pngSri56_1-1782737329408.pngSri56_2-1782737358764.png

Sri56_3-1782737419467.png

Sri56_4-1782737499858.png

 

 

Please help me with the issue, feel free we can join on zoom meetings if required.

 

Thanks,

Sri

 

 

 

 

Hi @Sri56,


Your custom action looks correct based on the screenshots you shared.

Please make sure you're calling this custom action in your Flow and using its output in the For Each loop. The For Each should iterate over the Array.String returned by the custom action, then use Look Up Record (User table) with the current Sys ID, and finally pass the returned User Record to the Ask For Approval action.

pr8172510_4-1782738970038.png

 

pr8172510_5-1782739004442.png

 



pr8172510_0-1782738778685.png

 

pr8172510_1-1782738834920.pngpr8172510_2-1782738886462.png

 

pr8172510_3-1782738930224.png

 

 

Sri56
Tera Contributor

Hi,

 

Still cant select the output variable from for each step.

Sri56_0-1782739965969.png

 

can you please help over the zoom meeting?

 

Thanks,

Sri

Hi @Sri56,

 

Your custom action looks correct
the output variable is being returned as Array.String, so the script is working.

I faced the same issue while testing in my PDI. What resolved it for me was

  1. Publish the custom action again.

  2. Close the Flow Designer tab completely.

  3. Delete the existing List Collector Convert to Array action from the flow.

  4. Save the flow.

  5. Add the custom action again from the Action Picker.

After re-adding the action, the output variable was available in the For Each step.

Please give that a try and let us know if it works for you.

Sri56
Tera Contributor

Hi, 

Its still the same 😞

 

Thanks,

Sri