You need to sign in to do that
Don't have an account?
Parallel Approval
I have apex code that works on kicking off an approval process based on numbers that I have defined. However, sometimes the approval may need to be routed to more than one person when it is kicked off. I can't get it to work in sending the approval to more than one person.
Here is the code...don't know what is wrong. It should work becasue setNextApproverIds accepts a list.
//list of ids that need to be sent the approval request
List<String> approversID = new List<String>();
//create the new approval request to submit
Approval.ProcessSubmitRequest req = new Approval.ProcessSubmitRequest();
//set approvers
req.setNextApproverIds(approversId);
req.setComments('Submitted for approval. Please approve.');
req.setObjectId(EachFlowOpportunity[i].Id);
// submit the approval request for processi