How to change the service sub category in service catalogue?

NurIzzahAI
Giga Contributor

I have three forms in the Service Catalog under the Finance category:

  1. Master Creation (uses the same approval workflow as Master Maintenance)
  2. Master Maintenance (shares the approval workflow with Master Creation)
  3. Debtor Specific Provision Request (uses a different approval workflow)

The issue is that whenever I submit the Debtor Specific Provision Request form, it incorrectly triggers the approval workflow for Master Creation and Master Maintenance. I discovered that this issue occurs because the service sub-category is set to "Master Creation" only, even though I have already configured the following condition:

 

NurIzzahAI_3-1735783382747.png

 

NurIzzahAI_2-1735783318507.png

How can I update the service sub-category for the Debtor form to ensure it triggers the correct approval workflow?

NurIzzahAI_1-1735783126089.png

 

4 REPLIES 4

Omkar Mone
Mega Sage

In your code, lines 16 and 18, can you log in and see what values are getting filled? Can you do current.u_service_category_main = catg.toString();

 

Also, check if there are whitespace in your workflow conditions.

NurIzzahAI_1-1735785669939.png

These are the values, and I tried using current.u_service_category_main = catg.toString(); but it did not make any changes.

 

On your form, it's displaying as "Customer Master Creation," which is triggering a different workflow. Could you add a log for the catg field to check what value is being passed?

Ankur Bawiskar
Tera Patron
Tera Patron

@NurIzzahAI 

at line 16 what does catg variable contain?

I couldn't see any place where that variable is declared and assigned a value

If my response helped please mark it correct and close the thread so that it benefits future readers.

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