Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Ask for approval

Kanimitha S
Kilo Guru

Hi,

I have doubt to creat "Ask for Approval " action. Actually, I have created an catalog item and now I am creating flow design to automate approval. So, my requirement is, approvals need to trigger to the owner of the Application based upon the application selected by the user. The application variable type is List collector. For eg. If user selected 3 applications, approvers need to trigger for those 3 owner of an selected application. Kindly guide me step by step to create this.

 

8 REPLIES 8

Tejas Adhalrao
Kilo Sage

hi @Kanimitha S  ,

Since your Application variable is a List Collector, you'll need to loop through each selected application.

A simple approach is:

  1. Trigger the flow when the Catalog Item is submitted.

  2. Use a For Each action to iterate through the selected applications.

  3. For each application, retrieve its Owner.

  4. Use the Ask for Approval action and set the approver to that Owner.

  5. The loop will create a separate approval for each application's owner.

If you found my solution helpful, please mark it as Helpful and Accept Solution. This helps others in the community find the answer more easily.

Hi @Tejas Adhalrao,

I need parallel aprrovals

 

Hello @Kanimitha S ,

 

as per your use case similar below : list collector → parallel approval per owner,
they solved it by creating a subflow and removing the wait option, which caused approvals to fire simultaneously.

 

How to ask for approval in parallel using Flow designer from a list collector 

 

Check if it works out for you..

 

If my response helped mark as helpful and accept the solution.

 

Tanushree Maiti
Tera Patron

Hi @Kanimitha S 

 

Try this:

 

i: Catalog Item Configuration

  • Open Service Catalog > Catalog Definitions > Maintain Items and create or edit your Catalog Item.
  • In the Variables related list, click New.
  • Configure the variable:
    • Type: List Collector
    • Question: Select Applications
    • Name: select_applications
    • Type Specifications (Tab): Set the List table to point to your application table (e.g., cmdb_ci_business_app or u_applications).

 

ii: Create the Flow in Flow Designer

Navigate to Process Automation > Flow Designer and click New Flow.

  1. Define the Trigger
  • Trigger: Service Catalog
  1. Fetch Catalog Variables
  • Add an Action: ServiceNow Core > Get Catalog Variables.
  • Submitted Record: Drag and drop the Requested Item Record data pill from the Trigger.
  • Catalog Item: Select your Catalog Item name.
  • Selected Variables: Move Select Applications from the Available to the Selected list.

 

  1. Parse the List Collector (No Script Method)
  • Add an Action: ServiceNow Core > Look Up Records.
  • Table: Select your Application table (e.g., cmdb_ci_business_app).
  • Conditions: Sys ID is one of > Drag the Select Applications data pill from Step 2.

  1. Add the Loop Logic
  • Click Flow Logic > For Each.
  • Items: Drag and drop the Application Records list from Step 3.
  1. Generate the Dynamic Approval (Inside the Loop)
  • Click the + icon inside the For Each loop block.
  • Add an Action: ServiceNow Core > Ask For Approval.
  • Record: Drag and drop the Requested Item Record data pill from your trigger.
  • Approval Rules: Choose Approve when: Anyone approves.
  • Approver: Click the data pill picker, navigate to Step 4 (For Each) -> Application Record, expand it, and select Owner (or managed_by)
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti