Custom UI macro for formatter in tickets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2025 11:34 PM - edited ‎07-23-2025 11:48 PM
In the code, below the second g:evaluate is not picking the value of "flow_label" variable. I am trying to build to build a formatter which will have steps and those steps have some sub steps under it which can be opened using a toggle button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2025 11:39 PM
try this
<g2:evaluate var="step_sys_id" jelly="true">
var gr = new GlideRecord("sys_process_flow")
gr.addQuery("table","sn_bom_financial_task");
gr.addQuery("label", jelly.flow_label);
gr.query();
if (gr.next()) {
gr.getUniqueValue();
} else {
"";
}
</g2:evaluate>
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2025 11:48 PM
I tried this previously, but it did not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2025 11:54 PM
try to use phase 1 jelly everywhere and then see
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2025 12:12 AM
I tried this code, but now i am getting this error:
