Hello everyone,
As you’re probably aware, the latest release of ServiceNow (Washington D.C.) introduced several exciting features aimed at enhancing our day to day works in ServiceNow. Among these, the time-limited user roles feature caught my atte...
I am sure most of you guys might be aware of it already, however, I would like to share my experience while working on Scripted REST APIs. Scripted REST APIs are a powerful way to create custom endpoints for your ServiceNow applications, and to expos...
Recently I was working on a requirement where I needed to write a script to remove specific users from their respective groups and remove all of their roles (given directly to them without any group) and only assign 'snc_internal' role to them.
I did...
Recently I came across a scenario where I had to create announcements for CSM portal as we were upgrading the instance to latest ServiceNow version. I created the announcement and set the display style, type, from and to date, active as true and sele...
Hi Team,
My PDI is behaving weirdly. Everything is working fine, but it is not performing the operation when I do Right click in the form header -> configure->Related lists on User(sys_user) record. It is running the transaction for infinite time a...
@saroj-patel as @Gustavo Olivei1 mentioned this access might be getting removed from backend, however I do not have any documentation or a point of source where it is mentioned.
@Gustavo Olivei1 I agree with you, the functionality should definitely ...
Hi @nani1 ,
You have to modify 3rd line in your code, instead of 'getUser' use getUser(). I can see there is a question with similar screenshots:Restrict user to stop resolving the incident when ... - ServiceNow CommunityNot sure, if you have used ...
@bankuru bhargav
I could not understand what you are asking here. Could you pls explain the line: "Can we Cleary the "Activates" which are being updated in the incident form?"
In your code at line number 3, you need to modify it as below:
if(gs.getUser().isMemberOf('Major Incident Management')==false). This should solve the issue.
Please mark this as correct and helpful, if it solved your issue.
@New Developer_S
You can modify the query for your GlideRecord to achieve this as shown below:
var sysId = '32 bit sysId'; //pass the 32 bit sys_id of the user you want to remove.
var inc = new GlideRecord('incident');
inc.addEncodedQuery('numberIN'...