Hey Trailblazer, we are here to guide you in earning the Flow Data Collections Specialist Superbadge. The first step to moving ahead is clearing the Flow Collections and Loops Superbadge Unit. The second step to move ahead is clearing the Flow Data Collections Optimization Superbadge Unit. It consists of mini super-badges already solved by us in other blogs. Those are the Flow Fundamentals Superbadge Unit and Flow Administration Superbadge Unit. I will help you figure out each challenge and how to clear it.
This blog consists of three challenges of the Flow Data Collections Optimization Superbadge Unit, which include
Optimize a Loop and Update Operation
Eliminate an Unnecessary Loop from an Existing Flow
Make Decisions Based on Collection Count
Every challenge has an outcome and hints at how to achieve it. It also consists of solving this error, ”Challenge Not yet complete... here's what's wrong: The 'Suspended Account - Opportunity Updater' flow doesn't pass filtered opportunities to the specified subflow.”, “Challenge Not yet complete... here's what's wrong: We can't find an active version of the 'Suspended Account - Opportunity Updater' flow.”, “Challenge Not yet complete... here's what's wrong: The flow 'Suspended Account - Opportunity Updater' doesn't update the opportunities with the expected Stage.”, “Challenge Not yet complete... here's what's wrong: The '30 Day Case Review' flow includes an unnecessary Loop element.”, “Challenge Not yet complete... here's what's wrong: The 'Account Industry Change' flow doesn't retrieve opportunity records.”, “Challenge Not yet complete... here's what's wrong: The 'Account Industry Change' flow doesn't retrieve the specified subset of records.”, “Challenge Not yet complete... here's what's wrong: The 'Account Industry Change' flow doesn't properly measure the size of the opportunities collection.”
Challenge 1: Optimize a Loop and Update Operation
Look at the result we are going to achieve in the end below:
Create a record collection variable in Updater flow as follows:
Update Assignment element ‘Update Owner’ with
Remove the Update record element as asked in the requirement.
Call the Negotiation/Review - Opps subflow for processing OpportunityOwnerRecords.
Challenge 2: Eliminate an Unnecessary Loop from an Existing Flow
Look at the result we are going to achieve in the end below:
Remove the Loop and decision element.
Add Collection Filter element with API name Filter_for_Status with the following details.
Connect as shown in the result flow image and check the challenge.
Challenge 3: Make Decisions Based on Collection Count
Look at the result we are going to achieve in the end below:
Create a new record-triggered flow on Account that will update all opportunities related to an account when the account’s industry changes. Name this flow Account Industry Change.
Fetch Opportunities: This element fetches open opportunities related to the Account which does not have a stage as CLosed Lost or Won
Count Opportunities: Create a variable of number type to count ‘no of opportunities’. Assign the new variable(no_of_opportunities) with fetch opportunities with the equals count operator.
How many opportunity records: Create one outcome with condition checking for no_of_opportunities greater than 3. Connect it with any email alert. (If no email alert is there you can leave it as well)
Count open opportunities: This element loops through Fetch Opportunities records
Assign Stage: Assign loop opportunity record stage to Need Analysis
Update Opportunity Stage: Just update the loop collection record.
Thank You! Please leave a comment to help me understand how the blog helped you. If you need further assistance, please contact us. You can click "Reach Us" on the website and share the issue with me.
Blog Credit:
Team Avenoir
Avenoir Technologies Pvt. Ltd.
Reach us: team@avenoir.ai
Comments