Is there any functionality in flow to run custom script as Run script activity in workflow ?

1_DipikaD
Kilo Sage

Hi All,

 

Is there any functionality in flow to run custom script as Run script activity in workflow ? When condition matches I want to trigger a script in flow designer. 

 

Thank You

1 ACCEPTED SOLUTION

@1_DipikaD 

you can add 2 script steps in same custom action or have 2 custom actions with 1 script step in each of those

it's as per your customer requirement.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

23 REPLIES 23

@Ankur Bawiskar ,

OOB function , I am trying fetch the sysid of the record in cmdb_ci table and passing the sysid of that list collector value which is captured in 1st step as mentioned in below pic .

Actually it was a workflow and in that only 2 run scripts are there and a set value activity is there and the workflow ends. I am migrating the exact logic to flow and will deactivate the workflow. I have provided the script could you please suggest if I am doing correct or need follow any other method ?

 

Thank You

@1_DipikaD 

then it should work as you should be able to select the list collector

that list collector is referring to some table or to question_choice?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar ,

That list collector is referring to cmdb_ci table .

@1_DipikaD 

then it should work fine.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar @yashkamde ,

 

Can we use fd_data instead current object . If yes then could you please help me with the script ?

Thank You