Flow triggered from another flows created RITM not triggering

Jugmaz
Kilo Sage

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.

find_real_file.png

new ritms gets created, it has the FLOW associated but it never gets triggered.

find_real_file.png

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

1 ACCEPTED SOLUTION

Jugmaz
Kilo Sage

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);

 

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Jake,

How is your flow configured? Can you share screenshot what is the trigger?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

First flow:

find_real_file.png

second flow:

find_real_file.png

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

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/flow-designer/concept...

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

ok, Ill try.