form to ui page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2023 11:16 AM
Hi all
I need to take from the form in INCIDENT the value in the field assignment_group and put the value inside the html in ui page (i have ui action between them )
How can i take from the field and put it in HTML ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 02:50 AM
Thank you Ankur Bawiskar
But what did you write in UI ACTION ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 02:53 AM
please update your script as this
HTML:
<g:evaluate jelly="true" object="true" var="jvar_kparticles">
var assignmentGroup = current.getValue('assignment_group');
var kb = new GlideRecord('sys_user_grmember');
kb.addQuery('group',assignmentGroup);
var list = [];
kb.query();
while(kb.next()){
list.push(kb.getValue('user'));
}
list.toString();
</g:evaluate>
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader