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
Shruthi Gopal 1Shruthi Gopal 1 

Lightning Experience Superbadge Challenge 5

Has anybody completed challenge 5 in lightning experience superbadge? If yes kindly post the solution of the same.
I'm facing problem in the following section.
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.

It is showing me the following error.
User-added image

Kindly share the solution.
Best Answer chosen by Shruthi Gopal 1
NagendraNagendra (Salesforce Developers) 
Hi Shruthi,

Please find the below solution which helped me surpass the challenge.
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
I actually added the fourth node wherein checked for Awaiting Approval and Discount <=0 to set it to an action as "Scheduled".  This actually made the challenge to complete.

Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra
 

All Answers

NagendraNagendra (Salesforce Developers) 
Hi Shruthi,

Please find the below solution which helped me surpass the challenge.
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
I actually added the fourth node wherein checked for Awaiting Approval and Discount <=0 to set it to an action as "Scheduled".  This actually made the challenge to complete.

Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra
 
This was selected as the best answer
Shruthi Gopal 1Shruthi Gopal 1
Thanx a Lot Nagendra. That helped!!
Mars Rover 697Mars Rover 697
can u please show the fourth node whoich u made?
Prashant Uniyal 13Prashant Uniyal 13
Hi @Nagendra ,
I go through same step as you discribe but unable to solve same error. please help me for this issue. 


User-added imageUser-added image
Shirley Lafuente 8Shirley Lafuente 8
I follow these steps and I'm still getting the same error.
Sankeerth ReddySankeerth Reddy
User-added image

Try this @shirley and @prashant This includes the fourth node as written by @nagendra

Thanks,
Sankeerth
Tilak Nanavati 2Tilak Nanavati 2
Follow the below steps :
 
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

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

Immediate Actions 
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
This might helpp you as it worked for me. And I've solved the challenge !!!

Please upvote the answer if u find it helpful :)
 
Oliver BullenOliver Bullen
I am getting the following problem:
User-added image

Can anyone advice on that?