Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Need to find from where the sub-flow is being triggered.

Lucky1
Tera Guru

Hello all,

 

We are using "Service Builder" interface in service-now to create and update the Technical and Business Services.

So, I see there is a sub-flow, ''Service builder publish". and when I open it, I see there are inputs defined for this subflow.

 

So, I am just curious from where this subflow is being called. Because I searched in main flow with name contains Service or name contains builder etc, but invain. 

Actually, I want to add some approvals and notifications. So, trying to understand how the sub flow is being called and from where.

 

Can someone let me know if they are aware of this?

 

 

 

Regards,

Lucky

9 REPLIES 9

ppatil4008
Tera Contributor

You can trace where the “Service Builder Publish” sub flow is called by checking Flow Designer → Sub flow → Usage tab or searching in Scripts, Catalog Items, or other Flows that reference it, as it’s likely triggered programmatically during service publishing.

kaushal_snow
Giga Sage

@Lucky1 ,

 

In Flow Designer every sub flow is either invoked by a parent flow or called programmatically (for example via the FlowAPI) and you’ll notice that sub flows do not have triggers of their own....In practice what I’d do is open the sub flow record, check the See related flows or Where used list (sometimes under More actions) and if no parent flow shows up, then search for scripts (business rules, script includes, UI actions) that call the FlowAPI with this sub-flow’s internal name. .....Then you’ll know exactly where your approvals/notifications should go before or after that invocation rather than guessing in the sub flow itself.....

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

Lucky1
Tera Guru

Hello Bhuvan and Kaushal,

 

In my PDI, when I install Service Builder plugin, then in the flow designer, there is a sub flow showing. 

that is: 

Lucky1_0-1761723851834.png

 

So, when I open the sub-flow, it is having the inputs. 

I also checked the related flows and there is nothing.

 

So, now can you please tell me from where this is being called?

UI actions ??

 

 

Regards,

Lucky

 

@Lucky1 

 

I tested this in PDI, below is the behavior. When you create Services using Service Builder, it calls this subflow.

 

To test it, go to Service Portfolio Management -> Service Builder and create a Business Service. Enable Flow reporting for the subflow and from execution history, check the details.

 

Bhuvan_0-1761897689124.png

Bhuvan_1-1761897846823.png

Bhuvan_2-1761897917856.png

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

@Lucky1 

 

Did you get a chance to review this as I believe the information provided should answer your question.

 

If my response helped to guide you or answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan