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
Jeremy Snow 1Jeremy Snow 1 

Process Automation Routing Records with Approvals - Type Value error

I've read through all the threads on this subject, and believe I did everything right. The correct values were added to Account Type. I get the following error every time:

User-added image

I've set the criteria to be Type=Prospect, and employees>500. Here is my overall setup:

User-added image

For the submission, I set the type field to update to Pending and have it locked:

User-added image

The approval is set to type Customer, and unlocked:

User-added image

And for the rejection, I have it set to type Prospect, and set to unlock:

User-added image

I'm at my wits end about this. Is there something I did wrong? Thanks in advance.

-Jeremy
Mahesh DMahesh D
Hi Jeremy,

For the Step 1:

No need to add the Criteria again.

Also look into below information:

Entry Criteria:


(Account: TypeequalsProspect) and (Account: Employeesgreater than500)

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

Please add three picklist "Pending" , "Customer" and "Prospect" in Account Type field.

Please follow the below posts along with the screenshots:

https://developer.salesforce.com/forums/?id=906F0000000BPe5IAG

https://developer.salesforce.com/forums/?id=906F0000000BMODIA4

https://developer.salesforce.com/forums/?id=906F0000000BFpcIAG

https://developer.salesforce.com/forums/?id=906F0000000B32GIAS

https://developer.salesforce.com/forums/?id=906F0000000B23cIAC


Please do let me know if it helps you.

Regards,
Mahesh
Jeremy Snow 1Jeremy Snow 1
Thanks for the reply. I didn't realize that putting the criteria in the approval steps broke it. Thanks a lot!
Mahesh DMahesh D
Hi Jeremy,

Glad that it helps you. Once after your varification, please mark it as solved so that it will be helpful to others in the future.

Regards,
Mahesh