how do I add tasks based on some condition in to catalog item which has OOB workflow -Item Designer Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2022 11:57 PM
We have a number of existing catalog items that are running the Item Designer workflow. One of the catalog requires us to add a task based on a condition, can anyone advise and share best practices on how to add the task please.
- Labels:
-
Command Line Interface

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2022 12:06 AM
Hi you can use if activity to check the catalog item. If returns yes do the task creation . If returns No follow the old flow
example:
answer = ifScript();
function ifScript() {
var getItemName = current.cat_item; // get cat item name
if(getItemName == 'sysID of cat_item') {
return 'yes';
}
return 'no';
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2022 06:29 PM
Hi Harish KM,
Thank you for your valuable suggestion, may i know where should I apply this script? is this a BR?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2022 06:37 PM
You can use IF activity in Workflow.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2022 12:13 AM
You have 2 option,
1. Update the exiting workflow to create the task based on the condition that you want for the specific catalogue item.
2. Create a new workflow / Flow and update the catalogue item to use the new workflow / flow.
Thanks & Regards,
Vasanth