how do I add tasks based on some condition in to catalog item which has OOB workflow -Item Designer Workflow

Jay Nendis
Tera Contributor

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.

5 REPLIES 5

Harish KM
Kilo Patron
Kilo Patron

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';
   }

Regards
Harish

Hi Harish KM,

Thank you for your valuable suggestion, may i know where should I apply this script?  is this a BR?

You can use IF activity in Workflow.

Regards
Harish

Vasantharajan N
Giga Sage
Giga Sage

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