- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 04:15 AM
Hi all,
i have a situation where I should trigger FLOW for RITM within another RITM's flow.
i have both flows created, when testing they both works.
First flow runs correctly without errors, it gives positive feedback on creating second RITM, it remains correctly in Waiting state.
new ritms gets created, it has the FLOW associated but it never gets triggered.
I'm also aware of Business Rule 'Start FlowDesigner Flow' - but what comes on it triggering anything, i'm not positive, as the first RITM is not in current.stage=='request_approved' - because we don't even have that stage.
default value for stage is waiting_for_approval.
Therefore i'm quite positive that triggering is happening elsewhere, anyone ?
Thanks,
Jake
Solved! Go to Solution.
- Labels:
-
flow designer
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2020 12:47 AM
Just to let you know, this is possible by using the business rule to trigger wanted flow.
Copy the code from Flow's Code Snippet (to use the internal name of the flow)
then run command:
var inputs = {};
inputs['table_name'] = 'Table Name';
inputs['request_item'] = current; // GlideRecord of table: sc_req_item
// Start Asynchronously: Uncomment to run in background.
sn_fd.FlowAPI.startFlow('global.[internal name of flow]', inputs);
// Execute Synchronously: Run in foreground.
sn_fd.FlowAPI.executeFlow('global.[internal name of flow]', inputs);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 04:54 AM
Hi Jake,
How is your flow configured? Can you share screenshot what is the trigger?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 05:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 05:39 AM
Hi,
So the 1st flow runs when Catalog Item is submitted.
So are you saying you want to trigger flow for another catalog item from the 1st flow?
Since your 2nd flow is configured for Service Catalog action it would only trigger when RITM is raised for that catalog item
you will have to use Subflows
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 10:37 PM
ok, Ill try.