Trigger different workflow for same catalog item based on category

Training
Tera Contributor

Hi, we have one catalog in 2 different portals/categories. Need to trigger different workflow for each case.

Please guide how to trigger different workflow based on from which category the catalog form was submitted?

3 REPLIES 3

Anil Lande
Kilo Patron

Hi,

A catalog item can have only one workflow/flow associated with it. Also there is no relation of submitted request and the Category. Category is used to classify and manage visibility of catalog item on Portal and Catalog Home page.

I would suggest to add a variable on your catalog form so that user can select the category and after submission you can create configure workflow with IF or SWITCH activity. Progress workflow based on users selection.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Just thinking if it's possible to get the URL of form submission.. it might contain category. So in workflow if script if somehow I'm able to get that category from url in if else, I can proceed.

Hi,

Yes you can get url before submitting cat item form.

Store Category from url in temp variable and use that in Workflow.

https://www.servicenow.com/community/csm-forum/get-url-parameters-from-client-script/m-p/389334

https://servicenowguru.com/scripting/client-scripts-scripting/parse-url-parameters-client-script/

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande