The CreatorCon Call for Content is officially open! Get started here.

Update RITM watch list from catalog item variable

rachelconstanti
Mega Sage

Looking for help on how to update the the RITM watch list from values from 2 variables on that Catalog Item.

How best to accomplish this?

Thank you.

Rachel

4 REPLIES 4

SailakshmiR
Tera Contributor

Hi Rachana, 

 

Can you be more specific on the use ?

 

We have a need to update the watch list on one catalog item based on the values of two variables on that catalog item once it has been submitted.

The two variables are a Primary POC and a Secondary POC.  We need these folks to receive all the notifications on that RITM - watch list seems to be the best option for this.  

Just trying to automate the process for the folks working on this request.

aruncr0122
Mega Guru

Hi @rachelconstanti ,

 

You can update the RITM watch list from catalog item variables using a Flow Designer action or Business Rule on the Requested Item (sc_req_item) table.

Option 1: Flow Designer (no-code)

Create a Flow with trigger: Service Catalog → Requested Item → Created.

Add an Action → Update Record (sc_req_item).

Set Watch list to include the variables.

Option 2: Business Rule (scripted)

Create an After Insert BR on sc_req_item:

(function executeRule(current, previous) {
var list = [];
if (current.variables.var1)
list.push(current.variables.var1);
if (current.variables.var2)
list.push(current.variables.var2);

if (list.length > 0)
current.watch_list = list.join(',');
})(current, previous);

 

Thanks

Anand2799
Tera Guru

Hi @rachelconstanti ,

 

You can update the RITM Watch List directly from catalog item Flow.

Trigger type -> Catalog Item

Flow must be attached to catalog item.
Refer to the attached screenshot for implementation details.

Anand2799_1-1760085049006.png

 

If this solves your query mark this as correct/helpful.

 

Thanks

Anand