Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Alternative to “Run Script” in Flow Designer for Updating Reference Fields from RITM List Collector

Puneet Hegde1
Tera Guru

Hi All,

I have a custom table that contains a reference field pointing to cmdb_ci_service.

My requirement is:

  • When a Request (RITM) is triggered

  • I need to take values from a List Collector variable (Ci's selected on the catalogue item)

  • And add those selected machines to the reference field on the related custom table record

Previously, when working with Workflow, using Run Script made this type of server-side logic straightforward (looping through list collector values, adding values instead of updating all values in the fields, handling GlideRecord operations, etc.).

However, in Flow Designer, there is no OOB “Run Script” action available like Workflow had. Because of that, implementing this logic purely with standard actions (Update Record, Look Up Record) is becoming complex.

So my question is:

  • Is there a recommended alternative pattern in Flow Designer for handling this type of server-side scripting logic?

  • Has anyone built a reusable custom Action that behaves like a “Run Script” utility?

  • If yes, how are you handling inputs (e.g., list collector values from RITM) and looping logic?

  • Are there any best practice considerations for this approach in scoped apps?

I’d appreciate any guidance or architectural recommendations.

Thanks in advance.

1 ACCEPTED SOLUTION

Hi  @Puneet Hegde1 

community61616.png

 

Thanks and Regards

Sai Venkatesh

 

 

You can see the below Image:

 

 

 

 

View solution in original post

3 REPLIES 3

SAI VENKATESH
Kilo Patron

Hi @Puneet Hegde1 

 

You can create custom action and use Script” functionality where you can send inputs from flow to custom action .

 

 

thanks and regards 

Sai venkatesh 

Dear @SAI VENKATESH,
I have created a custom action for my activity, but I want an action which will work as a run script in a workflow where I can perform serverside script. If you have any reference to it, can you please share it to me as it would be rally helpfull.

Thank you,
Puneet

Hi  @Puneet Hegde1 

community61616.png

 

Thanks and Regards

Sai Venkatesh

 

 

You can see the below Image: