- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2025 09:43 AM - edited 06-01-2025 09:46 AM
How to call system properties when I have 3 catalog item sys IDs and that needs to check whether it match to current catalog item sys id
Below is the query BR
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2025 11:23 AM
Hi @sukran ,
You can try this script.
var grp = gs.getProperty('testing_update').split(',');
// get sys_id of the current record
var sysId = RP.getParameterValue('sys_id');
for(var i=0;i<grp.length;i++){
if(grp[i]===sysId){
current.addInactiveQuery();
return;
}
}
current.addActiveQuery();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2025 11:04 AM
We have few catalog items that should allow inactive users to be select and those catalog items sys id mapped in the property
and the requirement is the current catalog item is match to those catalog items ,then it should allow else restrict to choose inactive users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2025 11:19 AM - edited 06-01-2025 11:46 AM
I didn't understand your requirement fully.
Could you elaborate properly? It looks like the approach you are taking is making your system more complex.
My questions are as follows.
inactive users - Where and how are inactive users even accessing Catalog Items from? It doesn't make any sense to me.
Explain your requirement so that correct solution can be provided.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2025 11:23 AM
Hi @sukran ,
You can try this script.
var grp = gs.getProperty('testing_update').split(',');
// get sys_id of the current record
var sysId = RP.getParameterValue('sys_id');
for(var i=0;i<grp.length;i++){
if(grp[i]===sysId){
current.addInactiveQuery();
return;
}
}
current.addActiveQuery();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 12:53 AM
It works
Appreciated your brillance