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.

TypeError: Cannot read properties of undefined (reading 'addParam')

Marjorie Castro
Tera Contributor

MarjorieCastro_0-1668404340890.png

 

my client script 

MarjorieCastro_1-1668404175986.png

 

 

2 REPLIES 2

Vaibhav Dane
Tera Expert

Hi  Marjorie,

 

Please apply opening and closing braces for your if block to check the new value. This will work.

 

Please mark correct if helpful.

 

Regards,

Vaibhav Dane

Muhammad Khan
Mega Sage

Replace

ga.addParam('sysparam_id', newValue);

With

ga.addParam('sysparm_id', newValue);