We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to send an approval to diferent people based on different Service Catalog Category?

The Matrix
Tera Contributor

Hi All,

I'm working on a Catalog Item and one of the requirement is to send the RITM for approval to different people based on different  Sevice Catalog Category value. 

Which workflow activity should I use here? 

 

Thanks!

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@The Matrix 

you can use Workflow User Approval Activity and use advanced script

then set the user based on category

answer = [];

var cat = current.cat_item.category.getDisplayValue();

if (cat == 'Office')
    answer.push('userSysId1');
else if (cat == 'Software')
    answer.push('userSysId2');

AnkurBawiskar_0-1769072994039.png

 

If you are using flow designer then you can use scripted approvals and set the approval dynamically

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

View solution in original post

5 REPLIES 5

Its_Azar
Kilo Sage

Hi there @The Matrix 

 

use an Approval – Ask for Approval action and set the Approver dynamically based on the Service Catalog Category. Add an If / Else (or Switch) condition that checks the category value and routes the approval to the corresponding user or group. If you’re using workflows, the equivalent is a Run Script activity to determine the approver, followed by an Approval – User/Group activity. Flow Designer is the preferred approach since workflows are now legacy.

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.

Kind Regards,
Azar
Serivenow Rising Star
Developer @ KPMG.