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
saran kumar 9saran kumar 9 

Quick Help

please explain me this

This approval process, called Approval for Package Deal, is available whenever the opportunity stage is Awaiting Approval, and it assigns approvals back to the opportunity owner. If the opportunity owner approves the discount, the opportunity record’s stage is set to Scheduled. Otherwise, set the stage to Negotiation Rejected.

i am stuck here for last 24hrs ...

here is what i understood
opportunity state is equal to   awaiting approval




 
VineetKumarVineetKumar
You need to setup an Approval Process, with the rule criteria as Stage = Awaiting Approval
Then define 2 field updates
one for approval and the other for rejection to update the stage name accordingly.
saran kumar 9saran kumar 9
step 1 ...
i created a approval process
with rule criteria as stage equal to awaiting approval
tell me from here .....2 field updates ? how
Rich Wingerter 9Rich Wingerter 9
Saran Kumar, I put some information about this in another question: https://developer.salesforce.com/forums/ForumsMain?id=906F0000000kGlyIAE

This might give you some clues how to handle this.
VineetKumarVineetKumar
In your approval page :
There are 2 sections : Final Approval Actions and Final Rejection Actions, under that you can setup field updates (under the Add drop down)

Also, check below links for screenshots:
https://developer.salesforce.com/docs/atlas.en-us.fundamentals.meta/fundamentals/adg_workflow_approval_actions_try_it_out.htm 
saran kumar 9saran kumar 9
here is what i did ......please tell me where did i go wrong

User-added imageUser-added image


i am getting error

The 'Approval for Package Deal' approval process does not appear to be working properly. Please check the requirement to ensure your process is configured correctly.
saran kumar 9saran kumar 9
here are field updates adding to my above post

User-added imageUser-added image
VineetKumarVineetKumar
Is this related to trailhead?
saran kumar 9saran kumar 9
superbadge task ..  ... 
Rich Wingerter 9Rich Wingerter 9
For this I created a process in Process Builder called "Approval for Package Deal". I had it start a process I created with the Approval tool that does something similar to what Saran shows, above. (Except, I unlock during the Final Approval Actions.)

This allows me to launch this process when the record changes (rather than from a Submit for Approval button).

I don't know if this is the correct answer, but it is the only way I could figure out to launch it on the record change but use the normal Approval mechanism to update the records properly. In my testing this does work when the record is updated to the proper values.

My suspicion is that if you don't make a process in Process Builder named exactly "Approval for Package Deal" it will fail the check because it won't find that process. You should probably be able to do the entire process with Process Builder, but I think it's easier to set up an approval process with the Approval tool.

More here (https://developer.salesforce.com/forums?id=906F0000000kGlyIAE).
Filip Poverud 4Filip Poverud 4
Another source for this Error is that you did not add a Manager, hence the field is empty and the process can not continue.
You do not need to build a Process for this step, an Approval Process is sufficient and you can make it as basic as described.

Error in the Log:
EXCEPTION_THROWN [8]|System.DmlException: Process failed. First exception on row 0; first error: MANAGER_NOT_DEFINED, This approval request requires the next approver to be determined by the Manager field. This value is empty. Please contact your administrator for more information.: []

Simply create a dummy user and add that as the manager for your user.
Deyaniris DepedroDeyaniris Depedro
Hi, i'm having some problems with Challenge 2 of Lightning Experience Specialist Superbadge.
The error displayed is: Challenge Not yet complete... here's what's wrong:
The 'Approval for Package Deal' approval process does not appear to be working properly. Please check the requirement to ensure your process is configured correctly.
These are some screenshots of what i did
User-added image
User-added image
User-added image
Specifications of Fields Update
User-added image
User-added image
Also i set the Discount field to required and the default value to 0
Can someone help me? Thanks
Deyaniris DepedroDeyaniris Depedro
Fixed!!! in Approval Steps, Step 1, i set the Assigned Approver to: Related User: Opportunity Owner See image below
User-added image
Carole KasinetzCarole Kasinetz
This is the missing link to making the challenge work.  RELATED USER!  Thank You!