- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 08:30 AM
I have a field on Catalog Item "other_interested_parties"( Referring User Table and its a List Collector). When the user adds users to that field and submit the request then the people in that field should be added automatically to watchlist. I know we can do this after Business Rule (Insert).
Can any one please provide with code which helps me alot.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 09:11 AM
So your modified code should be
if(current.variables.other_interested_parties)
{
current.watch_list = current.variables.other_interested_parties;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 08:33 AM
Hello Ursnani,
Create a Before business rule on requested item table with insert and update checkbox set to true, with script as
current.watch_list = current.variables.other_interested_parties; //Here I'm assuming other_interested_parties is the VARIABLENAME OF LIST COLLECTOR;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 08:48 AM
I have many Catalog Items with the same name but different values. so can you please suggest me with an approach on how to achieve this ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 08:57 AM
You mean you want to apply to all the catalog items with the same variable name. Can you please give more details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 09:03 AM
yes,
i have nearly 7 SR with the same field and same functionality should apply on all of those fields.
example:
i have ABC, BCD, CDS,..... with the same field "Other Interested parties" but the value of those fields are different like abc_other_...., bcd_other_..., cds_other_...,.....
Now when the user submit the request those people in that field should be added to watchlist automatically
Thanks