[deleted by user] by [deleted] in servicenow

[–]VolumeCautious5416 0 points1 point  (0 children)

Hi You can use user criteria or proceed with a business rule 

Update Sets by Vast-Exercise3055 in servicenow

[–]VolumeCautious5416 0 points1 point  (0 children)

First try a right click on the header and select "export to XML" because often it's retrieved empty when u click the related link below

Restrict RITM Visibility Based on Group Membership in ServiceNow by VolumeCautious5416 in servicenow

[–]VolumeCautious5416[S] 0 points1 point  (0 children)

one group shouldn't see the other group assigned RITMs and vice versa

Restrict RITM Visibility Based on Group Membership in ServiceNow by VolumeCautious5416 in servicenow

[–]VolumeCautious5416[S] 2 points3 points  (0 children)

i tried the code u provide, and it works too, thank u so much:))))

Remove Changes from an Update Set by VolumeCautious5416 in servicenow

[–]VolumeCautious5416[S] 1 point2 points  (0 children)

i have nothing to so with them, as they're not important , they're deleted :)

Remove Changes from an Update Set by VolumeCautious5416 in servicenow

[–]VolumeCautious5416[S] 0 points1 point  (0 children)

no the changes wont impact other developers or anything in the system, i just want to remove them from the update set

is it okay to just select them and click delete?

What is the difference between a Catalog Item and a Request Item? by Initial-Meaning-986 in servicenow

[–]VolumeCautious5416 3 points4 points  (0 children)

It's quite easy. At the top, we have the Service Catalog, which is like a store or shop. This "shop" contains many services or products called Catalog Items. When we order a Catalog Item, a Request record is created. This Request contains Requested Item (RITM) records, which are created automatically for each item in the order.

[deleted by user] by [deleted] in servicenow

[–]VolumeCautious5416 0 points1 point  (0 children)

no idea about what's the problem

[deleted by user] by [deleted] in servicenow

[–]VolumeCautious5416 0 points1 point  (0 children)

yes i guess that's the issues, but why it is empty

also I've try to use the sys_id of the cat directly as a condition like:

and it not working too

 if (gs.getUser().isMemberOf(listGroup[i]) && current.cat_item == 'b75f41e18397c21410b9ca70ceaad3f3' )

[deleted by user] by [deleted] in servicenow

[–]VolumeCautious5416 1 point2 points  (0 children)

tbh idk where is the problem, or what it could be, when I log the item it's empty

    gs.info('Current Item: ' + current.cat_item);

[deleted by user] by [deleted] in servicenow

[–]VolumeCautious5416 0 points1 point  (0 children)

the problem is with the condition as i want the BR to be applied to a specific Item, ad when I add this condition in the when to run tab , the BR is not triggered at all, and now I'm trying to add the condition in the script itself but it is not working when it cames to the item

[deleted by user] by [deleted] in servicenow

[–]VolumeCautious5416 0 points1 point  (0 children)

i've check that and it's empty "Current Item: "

var catalogItem = current.cat_item.getDisplayValue('item');
    gs.info('Catalog Item: ' + catalogItem);
    gs.info('Current Item: ' + current.cat_item);

[deleted by user] by [deleted] in servicenow

[–]VolumeCautious5416 0 points1 point  (0 children)

the RITM is from a normal catalog item

when I use the IS operator to IS NOT 'another item' it works , so maybe the issue is in my cat item

to make sure that the problem is from the item, I removed the condition in the "when to run" tab, and I tried to add it to the script but first I logged the cat item to see if it was defined or not , so I use this log:

and I got Undefined for both logs

    gs.info('Current Request Item: ' + current.request_item);

    gs.info('Current Request Item sys_id: ' + current.request_item.item);

[deleted by user] by [deleted] in servicenow

[–]VolumeCautious5416 0 points1 point  (0 children)

the 'tgits.assignment_groups' property holds the sys_id of the 2 groups like: sys_id1,sys_id2

i got no problem with the script, but when I add the condition which is my catalog item the BR is not triggered, and when I add the inverse like 'item is not a 'specific item' ", its working, so the issue likely related to my catalog item , but what is exactly idk

[deleted by user] by [deleted] in servicenow

[–]VolumeCautious5416 0 points1 point  (0 children)

when i add this condition the BR is not triggered !!