Dynamic Approval & Fulfillment Based on Category and Application Name

nameisnani
Mega Sage
We have a catalog item with the following fields:
 
  • Related Category (Mandatory) – Choice field with values:
    • Collaboration and Communication
    • Cyber Security Services
    • Hardware
    • Infrastructure
    • Software
  • Application Name – Reference field to the Business Application table

Current Behavior

When both fields are selected:
Example:
  • Related Category = Hardware
  • Application Name = ServiceNow Production
Flow:
  1. Line Manager Approval
  2. Hardware Group Owner Approval
  3. Application Support Group Approval (based on Application Name)
  4. Catalog Task is created for ServiceNow Production Support Group
This is working as expected.

New Requirement

If:
  • Related Category is selected
  • Application Name is NOT selected (empty)
Then after:
  1. Line Manager Approval
  2. Category-based Group Owner Approval
The request should route to default fulfillment groups based on category, as below:
 
 
Related Category Default Fulfillment Group
Collaboration and CommunicationInfrastructure-SUP
Cyber Security ServicesCyberSecurity_Tools-SUP
HardwareTechHub-SUP
InfrastructureTechHub-SUP
SoftwareSUP
nameisnani_0-1781840972144.pngnameisnani_1-1781841382317.png

 

 

can anyone please help me in scrpit

2 REPLIES 2

nameisnani
Mega Sage

Ankur Bawiskar
Tera Patron

@nameisnani 

you can use decision table for this

How to use Decision Tables in Flow for approval routing on Requested Item based on variable values d... 

How to use a Decision Table in a flow with catalog item variables? 

OR

You can directly use scripted flow approval

Scripted Approvals in Flow Designer with Flow Variables 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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