In UI Macro infront of Location field need icon button once click it shows only related incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I need you help on In UI Macro in front of Location field need icon button once I click it shows only related incident for that location which opened only in last 10 days.
So i used out of box UI Macro - user_show_incidents (which is same for caller).
On location table i can see icon and related incidents but how i can add the filter query for last 10days incident for same location.
where i can update in 'user_show_incidents' Ui Macro
Please suggest.
Thanks
Shekhar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
something like this
1) inside that UI macro get the inc sysId
2) then make GlideAjax call to script include and pass the location sysId
3) script include will query INC with this location, and then search for INCs with this location in last 10 days, for this you will have to use date time difference logic and then return array of sysIds
4) then update the query
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
