<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to set How to call a Sy property from a JSON Code in Incident Management SOW forum</title>
    <link>https://www.servicenow.com/community/incident-management-sow-forum/how-to-set-how-to-call-a-sy-property-from-a-json-code/m-p/3472435#M1346</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have a UX Macroponent Definition&amp;nbsp;&amp;nbsp;&lt;A href="https://Yourinstance.service-now.com/sys_ux_macroponent.do?sys_id=6295cbe0c3b57250eee1fe8f050131bd&amp;amp;sysparm_view=&amp;amp;sysparm_domain=null&amp;amp;sysparm_domain_scope=null" target="_blank" rel="noopener"&gt;https://Yourinstance.service-now.com/sys_ux_macroponent.do?sys_id=6295cbe0c3b57250eee1fe8f050131bd&amp;amp;sysparm_view=&amp;amp;sysparm_domain=null&amp;amp;sysparm_domain_scope=null&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In State variable I want to replace 7 from below query and set it from sys property dynamically but how to call it&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"initialValue": {&lt;BR /&gt;"type": "JSON_LITERAL",&lt;BR /&gt;"value": "sys_created_onONLast 7 days@javascript&amp;amp;colon;gs.beginningOfLast7Days()@javascript&amp;amp;colon;gs.endOfLast7Days()"&lt;BR /&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried calling a script include but not working.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jan 2026 22:48:18 GMT</pubDate>
    <dc:creator>Ashish Kathait</dc:creator>
    <dc:date>2026-01-21T22:48:18Z</dc:date>
    <item>
      <title>How to set How to call a Sy property from a JSON Code</title>
      <link>https://www.servicenow.com/community/incident-management-sow-forum/how-to-set-how-to-call-a-sy-property-from-a-json-code/m-p/3472435#M1346</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a UX Macroponent Definition&amp;nbsp;&amp;nbsp;&lt;A href="https://Yourinstance.service-now.com/sys_ux_macroponent.do?sys_id=6295cbe0c3b57250eee1fe8f050131bd&amp;amp;sysparm_view=&amp;amp;sysparm_domain=null&amp;amp;sysparm_domain_scope=null" target="_blank" rel="noopener"&gt;https://Yourinstance.service-now.com/sys_ux_macroponent.do?sys_id=6295cbe0c3b57250eee1fe8f050131bd&amp;amp;sysparm_view=&amp;amp;sysparm_domain=null&amp;amp;sysparm_domain_scope=null&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In State variable I want to replace 7 from below query and set it from sys property dynamically but how to call it&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"initialValue": {&lt;BR /&gt;"type": "JSON_LITERAL",&lt;BR /&gt;"value": "sys_created_onONLast 7 days@javascript&amp;amp;colon;gs.beginningOfLast7Days()@javascript&amp;amp;colon;gs.endOfLast7Days()"&lt;BR /&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried calling a script include but not working.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 22:48:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/incident-management-sow-forum/how-to-set-how-to-call-a-sy-property-from-a-json-code/m-p/3472435#M1346</guid>
      <dc:creator>Ashish Kathait</dc:creator>
      <dc:date>2026-01-21T22:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to set How to call a Sy property from a JSON Code</title>
      <link>https://www.servicenow.com/community/incident-management-sow-forum/how-to-set-how-to-call-a-sy-property-from-a-json-code/m-p/3472441#M1347</link>
      <description>&lt;P&gt;You can try call script include when it is&amp;nbsp;&lt;SPAN&gt;Client callable&lt;/SPAN&gt;. Make sure this is checked and dont forget about security as client callable script includes can be called by any user. Refer to&amp;nbsp;ApprovalDelegationUtil script include used ootb for&amp;nbsp;My Approvals module&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 23:02:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/incident-management-sow-forum/how-to-set-how-to-call-a-sy-property-from-a-json-code/m-p/3472441#M1347</guid>
      <dc:creator>Grzegorz Kaznoc</dc:creator>
      <dc:date>2026-01-21T23:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set How to call a Sy property from a JSON Code</title>
      <link>https://www.servicenow.com/community/incident-management-sow-forum/how-to-set-how-to-call-a-sy-property-from-a-json-code/m-p/3472477#M1349</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/77459"&gt;@Ashish Kathait&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In servicenow you can’t directly reference a sys_property inside the static json of a ux macroponent initialValue field...instead you can expose the sys property value via a client callable script include or server logic and......return that value to the json state....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you found my response helpful, please mark it as &lt;STRONG&gt;‘Accept as Solution’&lt;/STRONG&gt; and &lt;STRONG&gt;‘Helpful’.&lt;/STRONG&gt; This helps other community members find the right answer more easily and supports the community.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 02:13:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/incident-management-sow-forum/how-to-set-how-to-call-a-sy-property-from-a-json-code/m-p/3472477#M1349</guid>
      <dc:creator>kaushal_snow</dc:creator>
      <dc:date>2026-01-22T02:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to set How to call a Sy property from a JSON Code</title>
      <link>https://www.servicenow.com/community/incident-management-sow-forum/how-to-set-how-to-call-a-sy-property-from-a-json-code/m-p/3472482#M1350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/77459"&gt;@Ashish Kathait&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Here it is not possible call the System Property and Script Include Directly.&lt;/P&gt;&lt;P&gt;In UI Builder Pages , if we want to execute any Server side scripts we Just need to Create a new&amp;nbsp;&lt;STRONG&gt;Transform Data Broker&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;Refer the below documentation on how to create the Transform Data Broker&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.servicenow.com/dev.do#!/learn/courses/xanadu/app_store_learnv2_uibuilder_xanadu_ui_builder/UDR_UIBDataResources_xanadu/UDR_CreatingResources_xanadu" target="_blank"&gt;https://developer.servicenow.com/dev.do#!/learn/courses/xanadu/app_store_learnv2_uibuilder_xanadu_ui_builder/UDR_UIBDataResources_xanadu/UDR_CreatingResources_xanadu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In that data broker call your script include or write your logic there and return your result.&lt;/P&gt;&lt;P&gt;Let me know if you need any Guidance.&lt;/P&gt;&lt;P&gt;If my response finds helpful, mark my response as helpful and accept the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 02:48:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/incident-management-sow-forum/how-to-set-how-to-call-a-sy-property-from-a-json-code/m-p/3472482#M1350</guid>
      <dc:creator>Dinesh Chilaka</dc:creator>
      <dc:date>2026-01-22T02:48:33Z</dc:date>
    </item>
  </channel>
</rss>

