Update RITM stage from subflow (workflow editor) using inputs and 'run script' activity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 12:38 AM
Hi, I'm trying to use the workflow scratchpad on a main RITM workflow (using workflow editor not flow designer), and passing the ritm sys_id as an input to a subflow, and then using this in a 'run script' activity in the subflow to set the stage on the RITM.
Here's what I've got, but it's not working -
1. Run script in main workflow to save sys_id of current RITM to scratchpad:
2. Add input on subflow:
3. 'Run script' in subflow, to set a stage on the RITM:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 12:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 01:03 AM
Hi, thanks for your reply.
I just tested this and sadly it's still not updating the stage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 01:04 AM
I would like to know how are you calling that subflow from your workflow?
Also why not use run script to update RITM stage rather than using subflow etc?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 01:08 AM
Hi @Ankur Bawiskar
I am using the 'workflow' activity in the main workflow to call the subflow.
The subflow is running other things not just setting the stage. I would usually use a 'set values' activity to set the stage in an RITM workflow, but in a subflow this doesn't work. Hence, my attempt to use the scratchpad and inputs to run the script in the subflow.