Inbound Email action issue

vamsee1
Mega Contributor

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.                                          

1 ACCEPTED SOLUTION

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


View solution in original post

26 REPLIES 26

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.


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.


Hi Deepak,



Ya it works fine in the User activity but not in Group. Not sure why.



Thanks,


Vamsee.


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


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.