Under the approval process, we have Assigned Approver (Manually Chosen and Unanimous approval required Related user). I have gone through the other document that for Manually chosen approval process needed

Approval.ProcessWorkitemRequest req2 = new Approval.ProcessWorkitemRequest();
    req2.setComments('Approving request.');
    req2.setNextApproverIds(new Id[] {UserInfo.getUserId()});

When you have it set as Manually Chosen, you need to specify a next approver ID list using the setNextApproverIds(ID[]) method.

I have a question related to it that how we can identify that the approval process is manually chosen or related user in apex. So that user will select next approver in custom UI

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.