+ Start a Discussion
Alexander KrykunAlexander Krykun 

Approval process question

I'm trying to repet creating aproval process example from force.com workbook
https://developer.salesforce.com/docs/atlas.en-us.workbook.meta/workbook/approvals_1.htm

in this example we can launch approval process by clicking 'submit for approval' when price of line item is not equal to merchandise price.

User-added image
let's simulate the following situation
I have 1 user jenifer   with editing permissions on line item object
And I have Administrator user Alexander Krykun who must to approve changing the price of line item when it is not equal to merchandise price.
So, every time when jenifer want to change price of line item which differs from the merchandise price she must click 'submit for approval ' button. 
But what if she forgot do that? Line item price will remain distinct from merchandise price without approving. 
So, I would like to know are there any ways to launch approving process without obligatory  pressing 'submit for approval' button by jenifer?

GauravGargGauravGarg
Hi Alexender,

In above scenario, we can use trigger / class to automatically submit the approval process on price changes. 

Thanks,
Gaurav
Email: gauravgarg.nmims@gmail.com
GauravGargGauravGarg

Hi Alex,
 

Below is the link to sample code for submitting approval using Apex class.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_process_example.htm

Thanks,
Gaurav
Email: gauravgarg.nmims@gmail.com