Skipping Approvals when variable is set to Yes

EarlH
Tera Contributor

I have a flow that currently always asks for approvals.  I have a new requirement that if the variable skipApproval is set to Yes it should skip the approval stage and move to the fulfillment stage and create tasks.  I am trying to not create additional actions and use the ones that are already in place.  How can I do this?  I have an if statement created but cannot figure out how to skip to the steps where the fulfillment process begins.

2 REPLIES 2

Rafael Batistot
Kilo Patron

Hi @EarlH 

 

Flow Designer can’t skip to a later action. Use an If condition:

  • skipApproval = Yes → Go directly to fulfillment (or call a fulfillment subflow).
  • skipApproval = No → Run approvals, then continue to fulfillment.

Using a subflow for the fulfillment steps avoids duplicating actions.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0549963

 

 

If this response was helpful, please mark it as Helpful and, if applicable, as Correct.
This helps other users find accurate and useful information more easily

Tanushree Maiti
Tera Patron

Hi @EarlH 

 

A cleaner approach is to check whether approval is required, rather than whether it should be skipped. The flow would look like this:

  1. Get Catalog Variables (retrieve skipApproval).
  2. If skipApproval = No:
    • Update the stage to Waiting for Approval.
    • Ask for approval.
  3. Update the stage to Fulfillment.
  4. Create the Catalog Task (existing task).

This works as follows:

  • If skipApproval = Yes, the flow skips the approval steps and proceeds directly to updating the stage to Fulfillment, then creates the catalog task.
  • If skipApproval = No, the flow first updates the stage to Waiting for Approval and requests approval. After the request is approved, the flow exits the IF block and continues to update the stage to Fulfillment, then creates the catalog task.
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