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
Michele LoschMichele Losch 

Lightning Experience Specialist #5

I'm getting this error: Challenge Not yet complete... here's what's wrong: 
Opportunities with the stage of 'Awaiting Approval' and a Discount > 0, did not kick off an approval process named 'Approval for Package Deal'.

Here is what I submitted:

Object: Opporunity 
Start Process when created or edit

Criteria 
Conditions are met
[Opportunity].StageName Is Changed True
[Opportunity].StageName= Awaiting Approval
[Opportunity].Discount > 0
All conditions are met (And)

Immediate Actions
Object Opportunity
Approval Proccess: Specific Approval Process- Approval for Package Deal 
Submitter: User field from a record- [Opportunity].Owner.Id

Update Record
Record: [Opportunity]
Criteria: updated records meet all conditions
Filter: Discount Is null= true
New field: Stage=Scheduled

Criteria
Deposit Made
[Opportunity].StageName = Deposit Made

Immediate Action
Update Record
Record: [Opportunity].Fulfillments__r
No criteria
Status= paid deposit

Criteria
Cancelled
[Opportunity].StageName =Cancelled

Immediate Actions
Update Records
[Opportunity].Fulfillments__r
Status= Cancelled

Thank you in advanced!
JustAGirlyGeekJustAGirlyGeek
Are you still having an issue with this?
Jeff DouglasJeff Douglas
We updated all of the superbadges yesterday. Please check the requirements and try the challenge again. 

Thanks for trying out superbadges!

Jeff Douglas
Trailhead Developer Advocate
Theodore Peirce BaehrTheodore Peirce Baehr
I'm having trouble completing challenge 5 for the Lightning Experience Specialist Superbadge. I'm working on automating stage 1 = Awaiting Approval. Under 'Immediate Actions', I'm trying to add an action with the action type 'process'. But the Process Builder refuses to allow me to call the approval process I designed at the end of challenge 2 "Approval for Package Deal". 

Is that a glitch? Or is there some way to kick of the discount approval process without calling the approval process through Process Builder? Or some way to rebuild my initial 'Approval for Package Deal' in the Process Builder? 

I have looked at previous attempts to answer this challenge. Michele Losch's attempt (above and midway down the page here (https://developer.salesforce.com/forums/?id=906F0000000kEDkIAM" target="_blank)) answer seems to no longer be possible through the UI, and as @Jeff mentions, the challenge has changed anyway. 

Rich Wingerter 9 hints at an answer here (https://developer.salesforce.com/forums/?id=906F0000000kGlyIAE), but perhaps I've been working at this for too long, because his answer is Greek to me. Simple solution to the issue? 

For the sake of the search engines (to help other lost souls), or if anything changes in the future, the challenge as of 15 Nov 2016 reads: 
"Automate your sales process for various opportunity stages
Following the requirements described above, create the Sales Automation process flow. Please ensure that your process works as expected without errors before submitting this challenge."

Again, for the sake of the search engines, or if anything changes in the future, the instruction data as of 15 Nov 2016 reads: 
"Sales Automation
You want to make some additional changes to further automate your sales process. Create another process named Sales Automation.
You’ll customize three opportunity stages with automation for each stage.
Stage - Process

Awaiting Approval
If the status changes to awaiting approval and there is a positive discount value, kick off the discount approval process. If no discount is applied, the status updates to Scheduled because no approval is needed when a package is purchased at full price.


Deposit Made
After a deposit has been made, it’s reflected on all fulfilment records related to the opportunity by setting the fulfillment status to Paid Deposit.


Cancelled
If an opportunity is cancelled, it’s reflected on all fulfilment records related to the opportunity by setting the fulfillment status to Cancelled."
Amit Singh 1Amit Singh 1
Hi Michele/Theodore,

I have completed LES challenge #5 by following the below steps.

Here are steps which I followed to complete the challenge. 


Object: Opportunity 
Start Process when created or edit

Node 1 :
Criteria 
Conditions are met
[Opportunity].StageName= Awaiting Approval
[Opportunity].Discount > 0
All conditions are met (And)

Immediate Actions
Object Opportunity
Approval Process: Specific Approval Process- Approval for Package Deal 
Submitter: User field from a record- [Opportunity].Owner.Id

Node 2 :

Criteria
Conditions are met
[Opportunity].StageName= Awaiting Approval
[Opportunity].Discount = 0
[Opportunity].Discount IsNull true

Custom logic 1 AND (2 OR 3)

Update Record
Record: [Opportunity]
New field: Stage=Scheduled

Node 3 :

Criteria
Deposit Made
[Opportunity].StageName = Deposit Made

Immediate Action
Update Record
Record: [Opportunity].Fulfillments__r
No criteria
Status= paid deposit

Node 4 :

Criteria
Cancelled
[Opportunity].StageName =Cancelled

Immediate Actions
Update Records
[Opportunity].Fulfillments__r
Status= Cancelled

User-added image

Follow the above steps it will help.

Hope this will help cheers :)

Thanks,
Amit Singh.
Khaled Halabieh 6Khaled Halabieh 6
@Amit

Thanks a million. I have been stuck on this stage for a while.

Best Regards,

Khaled Halabieh
Shirley Lafuente 8Shirley Lafuente 8
Thanks so much.  This worked!
Brandon LibmanBrandon Libman
Amit's solution worked for me.

Thank you,
Brandon
Delubio de PaulaDelubio de Paula
Did not worked for me. ....still getting this message:
User-added image
Can someone help me, where I need to go to get this thing done?
Here's another screenshot of what I have done:
User-added image
Vijaya Sankar NatarajanVijaya Sankar Natarajan
@Delubio de Paula, Have you created Approval Process for the Opportunity Object and Activated it?
Mickael Selander 3Mickael Selander 3
Hi everyone,
I can get passed that error "Opportunities with the stage of 'Awaiting Approval' and a Discount > 0, did not kick off an approval process named 'Approval for Package Deal'." I have manually tested the process and also the approval process and the work as expected.

My Process is the same as above, (I had missed the test for discount = Null)

I can't found the error? any suggestions where to look? 
Mickael Selander 3Mickael Selander 3
Now it works *banging head against wall"
S_RathS_Rath
Hi Check the below screenshot

1)You need to make a process builder on the opportunity

2)In Define Criteria for this Action Group Check for stage and discount
User-added image


2)If the criteria is true. Call the approval process
User-added image

3)If the criteria is false then add another criterion and check if the stageName is 'Deposit Made'


4)If the criteria is true. Update fulfillment status to 'paid Deposit'
User-added image

5)If the criteria is false then add another criterion and check if the stageName is 'Cancelled'

6)If the criteria is true. Update fulfillment status to 'Cancelled'

7))If the criteria are false then add another criterion and check if the stageName is 'Awaiting Approval' and Discount equal 0.
User-added image

8)If the criteria is true. Update Opportunity stage to 'Scheduled'.

Before checking the challenge activate the process Builder.
User-added image


Get your shiny badge by following the above step.

Hope, the post will help you to achieve the superbage

Thanks

 
ALYCIA MORETTIALYCIA MORETTI
After reading through multiple responses, and links in the various responses the 1 difference was in the approal submission; the submitter has to be the Current User because the approver in the selected approval process is the opportunity owner. I changed this 1 part and it worked! 
Rajasekhar ValluruRajasekhar Valluru
@Amit Singh1, Hi,  I think there's a small modificaiton in your code. In Node 2, to check the boolean value for Discount, I hope it should be False. 
"[Opportunity].Discount IsNull - False". It worked for me with this. Can you recheck on this and update me.

Thank you!
 
Sachin Singh 55Sachin Singh 55
Hi,
I am still getting the below error Tried all above mentioned stuff but no luck,
Challenge Not yet complete... here's what's wrong:
Opportunities with the stage of 'Awaiting Approval' and a Discount > 0, did not kick off an approval process named 'Approval for Package Deal'.


the flow the is not getting triggered and there is no way to debug it, so frustrating. 
can someone help me on this
 
Sachin Singh 55Sachin Singh 55
I am attaching the Approval  Process
and flow builder screen shot
User-added image
User-added image
User-added image


 
v jaswanthv jaswanth
hi sachin
ur sales automation is almost correct but try to do these changes in process
1.In action for first condition change submitter into 
 User field from a record- [Opportunity].Owner.Id
2.While selecting the opportunity object check "when a record is created or edited" not "only when a record is created".
try to implement these changes 

thanks
jaswanth 
Michael TanyushengMichael Tanyusheng
For Node 2: Awaiting Approval and Discount = 0, this is enough to get it through
[Opportunity].StageName= Awaiting Approval
[Opportunity].Discount = 0

I got an error when putting [Opportunity].Discount IsNull true
After I delete it, I got a pass
Node 2