- 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-25-2015 09:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2015 03:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2015 09:54 PM
Also check the logs / scripted log statement along with the point highlighted by Gareth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2015 10:01 PM
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'.