Add script to flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2021 06:57 AM
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.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2021 07:11 AM
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:
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:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2021 01:30 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2025 10:47 PM
I added a Log action, and added my script inside that. Unprofessional but does the work.