Flow Designer - Dynamic Approval Routing Based on Company & Environment in Domain-Separated Instance

NishmithaS
Tera Contributor

Hi All,

We have a domain-separated ServiceNow environment. In a Catalog Item, the user selects a Company. Based on the selected Company, we need to route approvals to different approval groups.
After the approval is approved .an SCTASK should be created. Assign the SCTASK to a support group based on the selected Company. If any approval is rejected, the RITM should be cancelled.

 

We are trying to implement this in Flow Designer instead of Workflow. Sample Flow Designer implementation would be appreciated

 

1 REPLY 1

Tejas Adhalrao
Mega Sage

hi @NishmithaS ,

I would suggest the following approach:

  1. Create a flow triggered when the Requested Item is created.

  2. Read the selected Company from the catalog variable.

  3. Use an If/Else condition or a decision table to identify the approval group based on the selected Company.

  4. Use Ask for Approval to request approval from the relevant group. Configure the approval rules based on your requirement.

  5. If the approval is rejected, update the RITM state to Cancelled and stop the flow.

  6. If the approval is approved, use Create Catalog Task to create the SCTASK and assign it to the support group based on the selected Company.

Since your instance is domain-separated, make sure the approval groups and support groups are accessible in the correct domain. Also, verify that the flow runs in the appropriate domain context so that records are created and assigned correctly.

If there are many companies, a mapping table containing Company, Approval Group, and Support Group would be easier to maintain than multiple If/Else conditions.

 

If this helped, mark it helpful and accept the solution.

Regards, Tejas