@Twinkle S 

 

Your script is not clear , could you please provide complete scrtpt for me , so that i can test now ?

I have pasted the script in below thread.

 https://www.servicenow.com/community/developer-forum/for-incidents-assigned-to-fsedge-sup-limit-view... 

 

If you feel this was helpful, please consider giving thumbs up and if it solved your issue, please mark this correct.
Thanks

 

@Twinkle S 

 

Your BR is not clear , could you please arrange me properly 

What exactly is not clear to you? and please close one of the thread for others to not get confused

Breaking down the code for you to understand:

1) Create Before Query on Incident table BR

2) Use condition in the if statement like below along with this add or condition of gs.getUserID().isMemberOf('group sys_id')

twinkle4_0-1738211312789.png

3)If the condition satisfies return true, else false

 

If you feel this was helpful, please consider giving thumbs up and if it solved your issue, please mark this correct.
Thanks

View solution in original post