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

gbernie
Kilo Expert

Hi Vamsee,


Your issue might be related to a Group Approval Activity inside the change workflow.


Inside our change workflow the screen shot below is used when we only need one person to approve.


Workflow Approval - Group.jpg


vamsee1
Mega Contributor

Hi Gareth,



Group approval activity is based on the condition script as I have added a new condition called "Remediate" in the workflow activity. It works fine when approved from the form itself. Issue is with the Inbound email action, only that particular record is updated and when click save button on the form it sets the other approvals to "No Longer Required".



Below is the code in Group approval activity,


for(var id in groups)


  {


    var group = groups[id];


    var appr = group.approved;


    var rej = group.rejected;


    var rem=group.remediate;


}


if(appr > 0)


  {


  answer = 'approved';


}


if (rej > 0)


  {


  answer = 'rejected';


}


if (rem> 0)


  {


  answer = 'remediate';


}



Thanks,
Vamsee.


Deepak Ingale1
Mega Sage

Also check the logs / scripted log statement along with the point highlighted by Gareth


Gurpreet07
Mega Sage

We had same issue in past and we resolved it by replacing the approval group activity with approval user activity. After making this change if anyone from the group is approved the request then for others approval status updated to 'No longer required'.