trigger approval from form, OR from catalog item - need help getting the flow to look at the table

cameron8
Tera Contributor

i've got a need to trigger a flow from either the CMDB_CI_APPL form, or from a catalog item form, but preferably the first. 

 

Basically, we want to trigger an approval flow that goes to the department head assigned to a department that an application is assigned to. for example - ServiceNow is an Information Technology app, so IT would be the department, and a director would be assigned as the department head. approval goes to them. button in top right.

 

I've created a button that i should be able to trigger a flow from, but i'm not sure how to feed/get the correct cmdb_ci_application record, or cmdb_ci_application.department.department_head. can someone lend some advice on that?Screenshot 2025-05-28 at 10.16.03 AM.png

 

if that fails/falls through, i've also created a catalog item that a user could use to select the application that needs the renewal on, which could trigger the approval. my trouble with this one, is the department head of the chosen application. can't seem to get the reference variable auto populate to work on this. any help or thoughts?

Screenshot 2025-05-28 at 10.42.08 AM.png

 

Screenshot 2025-05-28 at 10.41.13 AM.png

Screenshot 2025-05-28 at 10.41.07 AM.png

  

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@cameron8 

why have you created button to trigger the flow?

Are you not triggering the flow on catalog submission?

If you are using Flow designer then in "Ask for Approval" flow action you can specify the department head for approval

where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar i've created the button on the form (see above screenshot #1) but i'm not sure how to ask for a specific department head based on the application that is needing the renewal within the flow. would it be a get call to some record, then selecting the department head from the get call, that the approver would be?

 

i'd prefer to trigger it from my button on the cmdb_ci_appl form rather than from a catalog item, but it can go from a catalog item as a plan B - i'm just not sure how to auto populate the second variable based on the selection made in the first (later screenshots on my original post). when variable "application needing renewal" is selected, question #2 is "approval request to" which is going to be the department head of that department that is the owner of the application selected in question/variable #1.