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.

Add two Name Pair Values to set value to a Name pair type field

RC19
Tera Expert

I have below values

a = {"name1":"value1", "name2":"value2"}

b={"name3":"value3"}

 

and i need to get result added as below:

c= {"name1":"value1", "name2":"value2","name3":"value3"}

 

To set value into a Name-Value Pair type field . Please suggest a script with best practice .

6 REPLIES 6

Community Alums
Not applicable

You have a point - so either one but it should do the trick in general

Community Alums
Not applicable

You have a point - so either one but it should do the trick in general