- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 12:48 AM - edited 07-17-2024 12:52 AM
i have created a system property with 20 cis sys ids how can i exclude these 20 cis in business rule can any one help on this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 12:55 AM
Hi @Arun61 ,
form where you wan these Ci's to be excluded? from being updated?
If so, you can created a business, executing before update.
and try this logic to exclude particular 20 sys_ids:
var sys_ids = 'sys_id1, sys_id2, sys_id3........... ,sys_id20' // add all the sysids here.
var exclude = sys_ids.contains(current.sys_id);
//var exclude = sys_ids.includes(current.sys_id); //use any one of them, both work same
if(exclude=true) {
current.setAbortAction(true);
}
Thanks,
Hope this helps.
If my response turns useful, please mark it helpful and accept solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 12:55 AM
Hi @Arun61 ,
form where you wan these Ci's to be excluded? from being updated?
If so, you can created a business, executing before update.
and try this logic to exclude particular 20 sys_ids:
var sys_ids = 'sys_id1, sys_id2, sys_id3........... ,sys_id20' // add all the sysids here.
var exclude = sys_ids.contains(current.sys_id);
//var exclude = sys_ids.includes(current.sys_id); //use any one of them, both work same
if(exclude=true) {
current.setAbortAction(true);
}
Thanks,
Hope this helps.
If my response turns useful, please mark it helpful and accept solution.