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.

Call system property from server script of widget

dhanalakshmi4
Tera Contributor

Hi,

I need one help on how to call the system property in widget level. I tried to get it by gs.getProperty('abc'). Here "abc" contains the sys_id of items. So tried to call it like cat_item.sys_idIN+gs.getProperty('abc'). But it is not working. Please help to rectify it.

 

Thanks and Regards,

Dhanalakshmi

1 REPLY 1

Rahul RJ
Giga Sage

@dhanalakshmi4  you can access system property value using gs.getProperty('property_name') server side widget code.  If you want to access in widget client controller you can store in 

data.variable =gs.getProperty('property_name')

 you can log data.variable to check it's returning any value.

 

Please mark the answer correct/helpful based on Impact.

Regards,

RJ