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
sai manognasai manogna 

without clicking on the sumbit for approval can u process the approval process?if yes what is the steps?

without clicking on the sumbit for approval can u process the approval process?if yes what is the steps?
Raj VakatiRaj Vakati
You can able to submit from the trigger 

Refer this links

http://sfdcsrini.blogspot.com/2014/09/approval-process-using-apex.html

http://www.jitendrazaa.com/blog/salesforce/dynamic-approval-process-based-on-the-apex-and-trigger/
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_process_example.htm

https://salesforce.stackexchange.com/questions/143889/how-can-a-trigger-be-written-so-that-it-fires-when-a-record-is-approved/143895

https://apexcoder.com/2016/04/25/approval-process-using-apex/

https://automationchampion.com/tag/automating-salesforce-approval-processes-with-apex-triggers/
http://www.saaspie.com/questions/what-is-the-order-in-which-the-approval-process-and-triggers-execute/
 
Suresh K 11Suresh K 11
We can initiate the approval process through Process Builder or Apex Trigger.

Please find the code sample below:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_process_example.htm#topic-title