How to set How to call a Sy property from a JSON Code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I have a UX Macroponent Definition https://Yourinstance.service-now.com/sys_ux_macroponent.do?sys_id=6295cbe0c3b57250eee1fe8f050131bd&s...
In State variable I want to replace 7 from below query and set it from sys property dynamically but how to call it
"initialValue": {
"type": "JSON_LITERAL",
"value": "sys_created_onONLast 7 days@javascript:gs.beginningOfLast7Days()@javascript:gs.endOfLast7Days()"
},
I have tried calling a script include but not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
You can try call script include when it is Client callable. Make sure this is checked and dont forget about security as client callable script includes can be called by any user. Refer to ApprovalDelegationUtil script include used ootb for My Approvals module
