approval workflow

damodar
Tera Contributor

damodar_0-1781086751479.png

can anyone explain  how to do this workflow 

GlideFather
Tera Patron

ahoy @damodar,

 

it can be done by a workflow editor or flow designer, what is your preference/convention?

 

Note: Flow designer was renamed to workflow studio 😄 so when you say workflow which one do you mean?

---
Where the rules are real, you'll find me

damodar
Tera Contributor

i means workflow studio

Fantastic, @damodar thanks for clarification.

 

Then go to Workflow studio, create a new flow (or duplicate existing) with the similar steps:

 

Ask for Approval (Approver is manager of the requestor)

GlideFather_3-1781175429323.png

 

If condition for Approved and Else (rejected)

GlideFather_4-1781175470930.png

If Approved, check the Opened by's location - Is it Canada or not:

GlideFather_5-1781175516579.png

 

If Approved and user from Canada, add the Requestor to the group defined here (example on Chatbotin my case):

GlideFather_6-1781175558380.png

 

Else the other group

 

GlideFather_2-1781175381119.png

 

Tip: there are flow variables which can make the group assignments more dynamic and easier to maintain, if it will require update in the future, you can just adjust a system property (populating the flow variable) rather than to touching the workflow..

GlideFather_1-1781174758117.png

 

---
Where the rules are real, you'll find me

Tanushree Maiti
Tera Patron

Hi @damodar 

 

Use Modernized Flow instead of Legacy Workflow in ServiceNow, as it aligns with the current platform terminology and reflects the newer process automation framework.

 

High level steps:

 

  1. Trigger: Set the trigger to run when a request is Created.
  2. Action: Ask for Approval:
    • Select the Requestor's Manager for the approval.
  3. Condition: If Approval State is Approved:
    • Nested Condition: If User's Location is Canada
      • Action: Add user to Bitlocker to Go Exception (ca).
      • Action: Close the request.
    • Else (Any other location):
      • Action: Add user to Bitlocker to Go Exception.
      • Action: Close the request.
  4. Condition: If Approval State is Rejected/Denied:
    • Action: Close the request.
    • Action: Send an email notification to the user.

 

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