- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2019 05:16 AM
Hello,
I have been facing some issues with my Workflow that I am currently developing for our new request/approval flow.
Basically I want to call a subflow and return a value based on the approval response.
I know that you can run a subflow by picking it in the workflow editor and the parent workflow will wait until it reaches it end, but I am calling the subflow with the "Run Script" activity because the subflow I am calling on is based on the value of a reference field on the sc_cat_item, so it's a dynamic value.
The point of this is to make it easy to create items and connect multiple workflows to it without having to know much about Workflows.
I have tried with a "Wait for condition" activity but that only updates/validates when the current record updates, which is not always the case with the subflow.
Is it possible to make the "Run Script" activity call the subflow and wait for it to complete (like servicenow regular way of calling a subflow)?
Ill attach some images how my current workflow is built.
I would really appreciate any help with this.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2019 01:32 AM
I managed to solve this on my own using the workflow activity "Parallel Flow Launcher".

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2019 05:29 AM
Hi there ,
please refer the following link :
If my reply helps you at all, I’d really appreciate it if you click the Helpful button and if my reply is the answer you were looking for, it would be awesome if you could click both the Helpful and Accepted Solution buttons!
Regards,
Apeksha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2019 05:32 AM
Hi,
Sorry, not sure of the full context here, but couldn't you assign that field to a workflow scratchpad variable and then pass that along to your subflow so that you're calling it the OOB way so that it does wait for it?
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2019 01:32 AM
I managed to solve this on my own using the workflow activity "Parallel Flow Launcher".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2021 04:40 PM