Trigger different workflow for same catalog item based on category
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 03:53 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 03:59 AM
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.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 04:04 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 04:07 AM
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/
Thanks
Anil Lande