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
Ayush Garg 7Ayush Garg 7 

process automation module

Challenge Not yet complete... here's what's wrong:
The process did not set the correct Type value on submitting for approval
Although I have correct values
venkat-Dvenkat-D
Can you post your flow update and challenge qn
Ayush Garg 7Ayush Garg 7
For purposes of local regulation new customers must be approved by the legal team.
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.
Ayush Garg 7Ayush Garg 7
User-added image
Ayush Garg 7Ayush Garg 7
User-added image
venkat-Dvenkat-D
In the pending action, are you setting type to Pending? can you copy the field update definition?
Amit Chaudhary 8Amit Chaudhary 8
Hi Ayush,
NOTE:- You added Approval Action Step which is wrong you need to ad only Final Approval Step.

Please cheeck below post for screen shot.
1) https://developer.salesforce.com/forums/?id=906F0000000BPe5IAG

Please check below three Field update and if possible then please remove Entry Criteria from Steps.

And you need to create three workflow field update to set Type field
1) On Initial Submission Actions to set Type field Pending
2) On Final Approval Actions  to set Type field as Customer
3) On Final Rejection Actions to set Type field as Prospect

User-added image

NOTE:- Please check your Final Rejection Actions to set Type field as Prospect

Please check below post for more help
1) https://developer.salesforce.com/forums/ForumsMain?id=906F0000000BBAyIAO

Please let us know if this will help

Thanks
Amit Chaudhary
Ayush Garg 7Ayush Garg 7
Hi Amit,
I have already checked that post but no success. Also, I have tried adding them as final steps but still getting same error
Ayush Garg 7Ayush Garg 7
Hi Jyothsna,
I have tried all these links but no sucess.
Amit Chaudhary 8Amit Chaudhary 8
Hi Ayush,

If you want i can look into your confirgutaion in your developer account. Feel free to connect with me on my email id amit.salesforce21@gmail.com