+ Start a Discussion
LeighAnn GrahamLeighAnn Graham 

Customize How Records Get Approved with Approvals Challenge

I keep getting the error message: The process did not set the correct Type value on submitting for approval.

I noticed that when I try creating a field update and need to enter a field to update, Account Type isn't an option for me to choose from from the standard fields. I'm not sure if this may be the problem and I don't know what to do to fix it. Please help!!
Amit Chaudhary 8Amit Chaudhary 8
please check below post for same issue
1) https://developer.salesforce.com/forums/?id=906F0000000B32GIAS
2) https://developer.salesforce.com/forums/?id=906F0000000BPe5IAG
3) https://developer.salesforce.com/forums/?id=906F0000000BFpcIAG


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

Your Entry Criteria should be like below:-

(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

User-added image

 
LeighAnn GrahamLeighAnn Graham
I was looking for Account Type under field and not just Type as the field...silly me! Thank you so much for replying!
Ken White CAKen White CA

I get an error (after butchering my Account Type picklist to just have three entries - Prospect/Pending/Customer)

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Process failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, missing required field: [nextApproverIds]: [nextApproverIds]

Any help?

 

Wendy WickwireWendy Wickwire
Ken, it has to do with setting yourself as the approver in the "Approval Steps" section.
Ken White CAKen White CA
Thanks Wendy, I was set as the approver. I received an email to approve the process I built and saw that process complete correctly. I also tested both 'approving' (with field change to Customer) and 'not approved' (showing field change to Prospect). This error is something else, I believe.
Ken White CAKen White CA
With testing further today, something else has gone haywaire. My email template no longer includes the {!User.Manager} or {!Opportunity.Name} in the outbound request for approval. As I finished the challenge and submitted, it worked fine.
Salesforce AnswersSalesforce Answers
This video shows how to make the approvel step-by-step.   https://www.youtube.com/watch?v=aBJdJOul6RU

---Salesforce Answers
Debra UsDebra Us
@Salesforce Answers or anyone ... Help!  Trying to complete the last module, Create an approval process that validates when a Prospect Account becomes a Customer, for the badge ... when I get to approval processes there are no "existing actions" to choose from?  Can anyone help me out with this??  Thanks so much !