Add script to flow designer

Inactive_Us2096
Kilo Contributor

I am trying to add a script to be executed in a flow. I dont see it available under Actions. The script will execute against the local instance. I am replacing a workflow created in the workflow editor.

3 REPLIES 3

Geoff_T
Mega Sage

Hi, 

If there are no suitable OOB actions that you can use for your requirement - you can create a custom action:

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/task/create-action.html

Inside the custom action you are able to add different action steps - one of which can be a Script:

find_real_file.png

Essentially you configure the action with a script and/or any other steps required.

 

 

Note: for many OOB actions there is the toggle scripting option where scripts can be written:

find_real_file.png

It just depends if this meets your needs or not. Otherwise as a last resort - the custom action with script may be the way to go.

I hope this helps.

 

Geoff

Hi Alex, please let me know if this answered your question and mark as correct if so. Otherwise I can help if you have more queries.

Geoff

MohammedAsK
Tera Contributor

I added a Log action, and added my script inside that. Unprofessional but does the work.