- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 11:41 PM - edited 01-17-2025 02:23 AM
Hello Team,
I got this requirement for practise.
Using create a flow field whenever a is created.
Your suggestions will be appreciated.
Thank you very much,
Asmita
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 11:50 PM
in the script do this
var arr = [];
var gr = new GlideRecord("sys_user_grmember");
gr.addQuery("group.name", "Security Incident");
gr.query();
while (gr.next()) {
arr.push(gr.user.getDisplayValue());
}
return arr.toString();
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
01-17-2025 12:26 AM
Hello @Asmita7
Just User below line of code and flow logic .For create a flow variable as string and store the active user from group that string see the below screenshots and let me know if anything else
Please refer the below screenshots and make the changes according to your requirement
Script Logic should be like below
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 11:50 PM
in the script do this
var arr = [];
var gr = new GlideRecord("sys_user_grmember");
gr.addQuery("group.name", "Security Incident");
gr.query();
while (gr.next()) {
arr.push(gr.user.getDisplayValue());
}
return arr.toString();
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
01-17-2025 01:40 AM
Thank you @Ankur Bawiskar for the prompt reply. It really helped to clear my doubt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2025 12:26 AM
Hello @Asmita7
Just User below line of code and flow logic .For create a flow variable as string and store the active user from group that string see the below screenshots and let me know if anything else
Please refer the below screenshots and make the changes according to your requirement
Script Logic should be like below
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You