It is possible to set dynamic appover to approval process invoke by apex

       // Create an approval request for the Opportunity
    Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();
    req1.setComments('Submitting request for approval automatically using Trigger');
    req1.setNextApproverIds(new Id[] {opp.Next_Approver__c});

    // Submit the approval request for the Opportunity
    Approval.ProcessResult result = Approval.process(req1);

In this we can not set approver to particular step by apex or dynamically.

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.