Calling a script include in breadcrumbs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 01:14 AM
Hello Guys,
I have a requirement to show list in custom table for fiscal start period FY25 and fiscal end period FY25.
so we have created a system property which stores the value i.e FY25. I made a script include that gets this sys property and I am calling that script include in breadcrumb. I tried both script includes with client callable checked(I am getting undefined) and unchecked (I am getting NULL). when I testing script include so it is displaying me FY25. it means script include is good. what could be the issue? please let me know and how can I make it works
thank you everyone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 04:08 AM
seems like gs.getProperty is failing in the script include. As a workaround you can query the properties table and get the value as below

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 05:24 AM - edited 05-11-2024 05:28 AM
Hi @Snow-Man ,
Please find the below snapshot of the script include that you need to configure.
@Keminda has provided the correct script that you should use in your
script include:
function myFunction() {
var propertyValue = "";
var systemProperty = new GlideRecord('sys_properties');
systemProperty.addQuery('name', 'get_value_test');
systemProperty.query();
if (systemProperty.next()) {
propertyValue = systemProperty.getValue('value');
}
return propertyValue;
}
Property:
Calling function in the filter
To add more on this, you can refer to the link below to configure the module and call a script-
If my response has resolved your query, please consider giving it a thumbs up and marking it as the correct answer!
Thanks & Regards,
Sanjay Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 05:30 AM