function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mustafa TopMustafa Top 

How to change an approval step name?

Hi all,

I have an approval process that it consisting of many approval steps.
I need to dynamically change these approval steps' name .
How can I change an approval step name with apex code?
NagaNaga (Salesforce Developers) 
Hi Mustafa,

Agenda of this article:

Automatically submit the record for approval on the basis of field value.
Automatically select the next Approver.
Approve / Reject the record on the basis of field.

Assumptions:

Opportunity Object is used.
Approval Process is already set on the Opportunity.
Field “Next_Approver”� will decide that who is going to approve the record.
There are three steps in the approval process.
There is no test class written and no check for mandatory fields needed for the trigger, as I have considered positive scenarios only.

Please follow the link below for more info

http://www.jitendrazaa.com/blog/salesforce/dynamic-approval-process-based-on-the-apex-and-trigger/

Best Regards
Naga kiran