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
suresh nidamanuriisuresh nidamanurii 

Approval Process

When an Account has the value of 'Prospect' in the Type field, a user will click the 'Submit for Approval' button to launch an approval process. The process will only happen if Type is 'Prospect' and there are more than 500 employees. Upon entry of the process, Type will become 'Pending' and be locked. If approved, Type will be set to 'Customer' and be unlocked. If not approved, Type will be set back to 'Prospect' and will be unlocked.

The Account object's Type field must have the following picklist values: Prospect, Customer, Pending. Before creating the approval process, verify the values in your Account object setup
The approval process name must be 'Approve New Account'.
When user click 'Submit for Approval', the approval must be processed if the Type field is set to 'Prospect' and the value of Employees is greater than 500.
Upon entering the approval process, set the Type field to 'Pending' and lock the record.
Normally the approver would be someone else. In this instance, assign yourself to be the approver.
If approved, set the Type field to 'Customer' and unlock the record.
If not approved, set the Type field back to 'Prospect', and unlock the record.

could you Please explain how to create approval process?

Suresh.N
Shivani DesaiShivani Desai
Hi Suresh,
If you have a sandbox you might want to create an approval process using it. Test out the approval process thus created and then move it to production. 

The steps for creating an approval process can be found here:https://help.salesforce.com/apex/HTViewHelpDoc?id=approvals_getting_started.htm&language=en_US

You might want use the standard wizard to create an approval.Add filters that check if the type is Prospect and number of Employees is more than 500. Have further actions based on whatever steps are required for the business process at your firm.