Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Declaring CONST in Script Includes

Salvador M_ Mar
Kilo Contributor

Hello everyone,

Quick question: How do you declare CONST in a Script Includes (used globally within it)?

Thanks,

Dor

1 REPLY 1

sachin_namjoshi
Mega Patron

You can create system property and then use getProperty() method in script include to get value of system property.

 

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/reference-pages/task/t_AddAPropertyUsingSysPropsList.html

 

Regards,

Sachin