How to write a scripted custom action in flow designer

Harrys09
Tera Contributor

Hi

please could someone help me write a scripted custom action in flow designer for a wait for condition where if the variable I have created which appears on my catalog task and RITM is set to Yes (look up the`sc_item_option_mtom` then get the sys id from the sc_item_options table and get the value if the value is Yes) or if the state of the catalog task is set to closed complete. If either of these conditions are met then the scripted wait for action will complete and the flow will create a catalog task.

 

I would really appreciate any help with this!

 

thank you,

Harry

5 REPLIES 5

Sanjeet_Choudha
Tera Expert

@Harrys09 Correct me, you want variable values of ritm yes then you can use get variable value action which snow provides. 

Please elaborate if I am misunderstanding.

 

Thank You

Sanjeet

hi @Sanjeet_Choudha , thank you for your reply. would you be able to guide please on where i can find this variable value action?

Thank you,

Harry

Hi @Harrys09 ,

I hope below image will be helpful and these points.

1. Trigger type select service catalog

2. use action "Get Catalog Variables"

3. put the variables which you want from available to selected.

4. these selected variables and their value you can use by data picker in wait for condition or if or any thing else.

Sanjeet_Choudha_0-1694088380023.png

 

Uncle Rob
Kilo Patron

What part are you having trouble with?

If its just inexperience with Custom Action, here's a couple Youtube videos  you could watch.