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.

How to update user records through backend script

kapil_shinde
Tera Expert

Hi All,

 

Need assistance on writing a backend script to update user records (a custom field) based on another custom field for 1000 records. Kindly suggest how to achieve this requirement.

 

Thanks

 

Kapil

6 REPLIES 6

something like this.

HashID Master ID
7d75cbc7dbf1e954d3ce7e72f3961944' 1
2bbfcf8fdb35e954d3ce7e72f39619d9 2
199735b2db79e554d3ce7e72f3961915 3
2979245a87fde114911cb8809bbb3513 4
8ba218d2873de114911cb8809bbb3570 5
542f8c1287f9e114911cb8809bbb35ae 6
143dc4d687b9e114911cb8809bbb35c3 7
1a1f730e8735e114911cb8809bbb358f 8
bfc17fb0dbb52514d3ce7e72f39619c7 9
adbd637cdb352514d3ce7e72f3961923 10

 

So i will call the function from backgroup script like Var x = new updateMasterID(hashid, master id);

so I need help to write this function updateMasterID in script include.

Michael Leone
Tera Guru

Don't code it.  Write a flow. Soooo much easier.