- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 10:01 PM
Hi there
i have a cat item with a free text field where users type in mailbox email address.
i have also created in the sys_user_group table, with the mailbox email address.
how do i trigger a group approval to the relevant group for approval.
e,g if user type in fireandemergency@yahoo.com it checks the sys_user_group table and then triggers approval to the relevant group
can it be just 1 if script with a dynamic approval group based on the conditions above?
Thanks
Levino
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 09:25 PM
Hi @levino ,
You need to write this script in "Approval - Group" activity as per attach snapshots:
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Kavita Bhojane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 03:47 AM
Hi @levino
Thank you for acknowledging my response as helpful.
If my assistance proved beneficial, please mark it as correct and close the thread to benefit future readers. ✅
Regards,
Kavita Bhojane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 11:41 PM
Hi @levino ,
You can use Approval - Group activity and write below script in advanced section:
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Kavita Bhojane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 03:54 AM
Hello @levino
var answer =[];
var gr = new GlideRecord("sys_user_group");
gr.addQuery("email","fireandemergency@yahoo.com");
gr.query();
if(gr.next()){
answer.push(gr.getUniqueValue());
}
If this code is helpful, please click on Thums up button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 04:28 AM
Hi Naveen
thank you for your response, so in the workflow , this script goes in the run script activity- then the output to the group approval activity ?
or do i put this code group approval activity itself by clicking on adavanced
Thanks
Levino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 09:25 PM
Hi @levino ,
You need to write this script in "Approval - Group" activity as per attach snapshots:
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Kavita Bhojane