- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2015 07:15 AM
Hi,
I have a Inbound action to approve or reject a change ticket via email and the Inbound action is on sysapproval table. When a user responds to the email to approve/reject a change (Group approvals activity) only one record gets updated to Approved and rest remain in Requested status. Can anyone let me know what could be the issue?
Thanks,
Vamsee.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2015 12:06 AM
Hello Vamsee,
In group approval activity, your script should be;
answer = 'Group sys_id' ;
It will send approval mails to all the approvers,
Please check and confirm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 08:40 PM
Hi Deepak,
The code is not working its showing the users list in the logs but doesn't populate in the approvers list.
Thanks,
Vamsee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 09:15 PM
answer = [];
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('group','sys_id of group');
gr.query();
while(gr.next())
{
gs.log('Group member: ' + gr.user.getDisplayValue());
answer.push(gr.user.toString());
}
gs.log('GroupMembers: ' + answer);
It is working for me in 'Approval User' Activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 09:34 PM
Hi Deepak,
Ya it works fine in the User activity but not in Group. Not sure why.
Thanks,
Vamsee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2015 12:06 AM
Hello Vamsee,
In group approval activity, your script should be;
answer = 'Group sys_id' ;
It will send approval mails to all the approvers,
Please check and confirm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2015 01:06 AM
Hi Deepak,
Added group id instead of user, its working fine. still have issues with the Inbound action. I am able to see the Approval record with the sysid logged in the logs. Thank you very much for your time on this.
Thanks,
Vamsee.