Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

How to Verify Group's Role using Role's Sys ID

Hello,I'm using ATF Test to validate if a Role is added or part of an existing Group.When I'm running the Test, ATF is validating using the sys_id of Created Date instead of sys_id of Role.Since Created Date is bound to change, it might Fail the scri...

ashok9034_0-1709629774321.png ashok9034_1-1709629786136.png
ashok9034 by Tera Contributor
  • 852 Views
  • 3 replies
  • 0 helpfuls

How to make any specific module as read only

Hi All,  Is it possible to  give read only access to any specific module example i want to give read only access to user only for CMDB module. if i give the user snc-read only role then complete all modules will become read only so is there any way t...

Resolved! UI Builder hiding components based on logged-in user's GROUP

In ServiceNow UI builder configurable workspace, what is the best way to hide a component based on the current logged-in user's group? I know how to hide a component based on the current user's role utilizing the api user.roles but I want to use the ...

CodeHearted by Tera Contributor
  • 2660 Views
  • 3 replies
  • 2 helpfuls

Resolved! Get users sysids from group memeber table

Hello,I am trying to get users sys_id's from sys_user_grmember table for one particular group(X). (X) group have 13 group members. I have written a code. however It seems code is not working. It prints only one sysid multiple times.           var arr...

Vinay49 by Tera Expert
  • 1259 Views
  • 3 replies
  • 0 helpfuls

Resolved! addActiveQuery() and addEncodedQuery()

Hello All I am running script include function and just notice that this code lines sequence does not filter for active records var gr = new GlideRecord(someTable); gr.addActiveQuery(); gr.addEncodedQuery(strQuery); // gr.query(); but this one does v...

nataliya_b by Tera Guru
  • 23532 Views
  • 13 replies
  • 10 helpfuls

Automatically fill in values through the Reference field

In table A, I have 2 fields with type Time: Start Time and End Time and create some records containing data.In table B, I create a reference field to table A. Then use it to get related data. But with the 2 fields Start Time and End Time I cannot get...

Chronos by Tera Contributor
  • 447 Views
  • 3 replies
  • 0 helpfuls

Resolved! Business rule script variable "undefined"

Hey all, I am working on creating a business rule that will set the short description of an incident inserted to "Compensation Change: " +producer.variable_name. When I test the script the short description comes back as: "Compensation Change: Undefi...

Resolved! Employee Center Footer

I do not see employee center footer in my system. Does it come by default or need to be configured?

samadam by Kilo Sage
  • 552 Views
  • 2 replies
  • 0 helpfuls