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 Gurpreet,



Replacing it with the User activity works fine but does not populate the Group details in the Group Approvals tab which is required for us.



Thanks,
Vamsee.


vamsee1
Mega Contributor

Getting an Error message "ClassUtil - class not found: com.glide.processors.xmlhttp.DDTaskAjax: no thrown error"


Hello Vamsee,



in the 'Approval User' activity, try below code to get all the members of the groups whom you want to send an approval mail.


Check if it works for you.



answer = [];


var gr = new GlideRecord('sys_user_grmember');


gr.addQuery('group','sys_id'); //here pass on the sys_id of the group


gr.query();


while(gr.next())


{


gs.log('Group member: ' + gr.user.getDisplayValue());   //to check how many users are there and whether are listed under log


answer = gr.user + ',' + answer;


}


gs.log('GroupMembers: ' + answer); //array of users whom approval mail to send


Hi Deepak,



I am able to send mails to users, what is not working is Inbound action to approve or reject.



Thanks,
Vamsee.


is it the same thing with method ('approval user') activity?


Please analyze the inbound mail for approval which are not being applied. check whether 'approval inbound action has been processed or skipped for that particular email.


if it is not processed, then you need to figure that out.


can you provide some screen captures?