- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 04:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 04:54 AM - edited ‎03-12-2024 04:54 AM
Hi @Tanisha26,
To reference or call on a system property, use the following syntax:
var property_value = gs.getProperty(‘property_name’);
You can use this syntax at any server side script such as Business Rules, UI action, Script Include, and Scheduled jobs etc.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 04:53 AM - edited ‎03-12-2024 04:54 AM
Hi,
I'm not sure what you mean by linking the property to jobs & scripts.
But, You can call it form scripts using gs.getProperty('<property name>')
i also recommend adding details in the description of the property to explain what it is , what it controls and where is it being called from.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 04:54 AM - edited ‎03-12-2024 04:54 AM
Hi @Tanisha26,
To reference or call on a system property, use the following syntax:
var property_value = gs.getProperty(‘property_name’);
You can use this syntax at any server side script such as Business Rules, UI action, Script Include, and Scheduled jobs etc.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 05:01 AM
Hi @Tanisha26 ,
You can refer to below article where System Properties & it's Usage is mentioned clearly,
https://www.servicenow.com/community/developer-articles/system-properties-it-s-usage/ta-p/2300155
Best practices foe\r system property
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0538866
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang