Service catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 09:03 PM
I have around 10 choices which is inside the requested type , those choices are inside the first option (NEW).
I need to create 10 catalog task with different description and short description. Should i use If, Switch or branch. and then where script needs to be write for description and short description. Please suggest
gest
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 09:46 PM
Hi @vikaskumarc ,
If/Else-of chain is simpler for 2-3 options, in your case best to switch statement for many options and different logic.
If possible, try to use the flow designer, where you can branch(Switch) on requested_type, something like
Case: "choice_1"
Create Catalog Task
Short Description: "Task 1"
Description: "Details 1"
Case: "choice_2"
Create Catalog Task
Short Description: "Task 2"
Description: "Details 2"
...repeat for all 10 choices...
Use the Flow Designer “Branch” (Switch) action to create the correct Catalog Task for each requested type choice and set the Short Description/Description in each branch’s "Create Catalog Task" step. If scripting, use an associative code map/object.
Thanks,
Bhimashankar H
-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 09:48 PM
Hello @vikaskumarc ,
You can create two Flow variables.
You can use If, Else if in the flow designer and depending on the choice selected, you can assign the respected flow variables.
Later, you can create a Catalog task and assign the short_description and description with the respected flow variables.
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 09:51 PM - edited 07-30-2025 09:52 PM
Hi @vikaskumarc ,
If you are using Workflow use "Run script" activity to create catalog tasks if values are not fixed
If you are using Flow, create custom action to create multiple tasks
Thanks,
GP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 10:38 PM
i am using workflow editor