- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2025 10:57 PM
Hi Team,
i need to implement related link on the user profile when Servicenow support team clicks on the related link it should show results(servicenow ,AAD integration current user details )AAD integration result in window .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2025 03:33 AM
I already informed please use GlideAjax and get the response and then pass it to modal.
RESTMessageV2 is server side and GlideModal can be invoked only from client side.
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-02-2025 05:19 AM
Thank you for response , <g:evaluate>
implemented glide model render in UI action .
please refer below UI action and UI page scripts .
UI action:
/Client-side 'onclick' function
function showTest {
var gm = new GlideModal("test",false,1000);
var getIDB = new GlideAjax('test1');
getIDB.addParam('sysparm_name', 'test2');
getIDB.addParam('sysparm_userEmpNumber', g_form.getValue('employee_number'));
getIDB.getXML(getIDBUserDetails);
function getIDBUserDetails(response) {
//hideSpinner();
var answer = response.responseXML.documentElement.getAttribute("answer");
console.log("Adding"+answer);
gm.setTitle("User Details");
gm.setPreference('answerJson1', answer );
gm.render();
}
}
UI page HTML:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:ui_form>
<g:evaluate>
var idbResponse="${RP.getWindowProperties().get('answerJson1')}"
idbResponse = new GlideStringUtil().unEscapeHTML(idbResponse);
</g:evaluate>
<table width="10">
<tbody>
<tr id="description_row" valign="top">
<td colspan="2">$[idbResponse]</td>
</tr>
</tbody>
</table>
</g:ui_form>
</j:jelly>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2025 11:11 PM
Hi @Rajyalakshmi,
please refer to Mark's comment (the accepted solution) in this thread:
https://www.servicenow.com/community/developer-forum/glidedialogform-and-glidedialogwindow-in-ui-act...
It could be helpful source
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */