Skip to main content TDX, the developer conference for the AI agent era is happening now. Watch live on Salesforce+ for exclusive digital content, a revolutionary keynote, and more.

#Trailhead Challenges토론 중인 항목 2,490개

Hands-on challenges are the “secret sauce” of Trailhead. Before searching for solutions to superbadge challenges, review the Salesforce Certification Program Agreement and Policies.

The case is related to an opportunity which has quotes attached. I am struggling to build the formula because you can't use a roll-up on a cases because they are a child object 

 

 

 

#Trailhead Challenges

답변 3개
  1. 2월 27일 오후 6:44

    Hi, @melissa vaughn

    You are absolutely right: in Salesforce, you cannot directly use a Roll-Up Summary Field on the Case object to count Quotes, as Case is a child object of Opportunity (through a lookup relationship), and Roll-Up Summary only works for master-detail relationships. However, we can solve this using Record-Triggered Flow or Apex Trigger. 

     

    1. Create a field Quote_Count__c on Opportunity (Number). 

    2. Write a trigger on the Quote object:  

    (example of Apex Trigger):

    trigger QuoteCountTrigger on Quote (after insert, after update, after delete) {

    Set<Id> oppIds = new Set<Id>();

    if (Trigger.isInsert || Trigger.isUpdate) {

    for (Quote q : Trigger.new) {

    if (q.OpportunityId != null) {

    oppIds.add(q.OpportunityId);

    }

    }

    }

    if (Trigger.isDelete) {

    for (Quote q : Trigger.old) {

    if (q.OpportunityId != null) {

    oppIds.add(q.OpportunityId);

    }

    }

    }

    if (!oppIds.isEmpty()) {

    List<Opportunity> oppsToUpdate = new List<Opportunity>();

    for (AggregateResult ar : [SELECT OpportunityId, COUNT(Id) quoteCount

    FROM Quote

    WHERE OpportunityId IN :oppIds

    GROUP BY OpportunityId]) {

    oppsToUpdate.add(new Opportunity(

    Id = (Id)ar.get('OpportunityId'),

    Quote_Count__c = (Decimal)ar.get('quoteCount')

    ));

    }

    if (!oppsToUpdate.isEmpty()) {

    update oppsToUpdate;

    }

    }

    }

     

    Sincerely, 

    Mykhailo Vdovychenko 

    Bringing Cloud Excellence with IBVCLOUD OÜ

0/9000

Challenge not yet complete in Brave Unicorn Playground

We created an account with one opportunity. We expected the account's 'Potential_Value__c' field to show the amount of that one opportunity, but it didn't.

 

Learn

0/9000

Hello. I am trying to complete the Travel App Module - Step: Create a Roll-Up Summary Field. I cannot get past the verification for this step - " We couldn't find a field for total expenses." I have redone this step of the challenge multi-times (over several days) to make sure I am following the directions correctly. How can I move on to the next step of the module? 

 

I have been trying to get this step to verify for over two weeks. I have:

* Tried a different browser

* Cleared my cache

* Disconnect the playground and relaunched 

* Tried verifying on the wrong playground, then returning to the correct one

* Creating a test user and verifying that way (I submitted a help ticket as well, also with no success)

* Deleting and re-completing the steps (multiple times)

 

Verification Issue

 

Travel_App_Two.png

 

Travel_App_Directions.png

 

#Trailhead Challenges  #Trailhead  #Hands-OnChallenge

0/9000
답변 9개
  1. 2024년 9월 5일 오후 5:38

    If you're working on the Recruiting App project, the roll-up summary field should be created on the Job Application object. Roll-up summary fields are created on the parent object in a master-detail relationship.

0/9000

Hello, I am completing the hands-on challenge for the create formula and rollup summary fields and the last step that requires moving some fields from the information section to the candidate rating section, however, when I check the challenge it says "Step not yet complete in My Trailhead Playground 1

Make sure you moved the correct fields from the Information section to the Candidate Rating section." But I have moved the required fields. Don't know what the problem is. 

Thank you.

답변 1개
  1. Manoj Nambirajan (Dell Technologies) Forum Ambassador
    2023년 5월 8일 오후 2:14

    @Yinka Onabule Help validate your step with below link

     

    https://www.youtube.com/watch?v=pAso0FLnEOo

0/9000

Hello everyone - I need help again.

I have a report with accounts and there are several cases per account. Now I want to count the number of cases per account to prioritize. Problem: I do not have the option to count the Subject, Case ID or Case Number fields. I am missing the option Summarize and then Count. I use the report type Cases. Where is my error? 

Thank you very much!

 

#Trailhead Challenges

답변 4개
  1. 2024년 11월 6일 오후 6:45

    Thanks for the tips so far - but somehow, i'm still not getting anywhere.

     

    I am currently working on a Superbadge and the task: SolarBot High-Case Candidates. The requirement is:

     

    Gabriela has asked for a SolarBot High-Case Candidates report showing the account phone number, case subject, and open or closed status, organized by account, for all accounts that don’t have any SolarBots.

    • Simplify the report by showing the phone only once for each account.

    • To help the Sales team see which customers are the best candidates for a SolarBot sale, prioritize the list by the highest number of cases.

    • Maria added the roll-up summary field Number of SolarBots on the Account object which shows how many SolarBots each account has.

     

    I have created a report and tried to sort it according to the requirement - not via the Subject or Subject ID field as the Summarize - Count option is not displayed here, but via the account name.

    Unfortunately, I always get an error message and simply cannot find my error. The error message always reads:

    The 'SolarBot High-Case Candidates' report isn't lumped correctly or doesn't prioritize the list correctly.

     

    Can someone help me here. Where could my error be?

    Please find attached an excel sheet of my generated report

     

    Many thanks in advance.

0/9000

I was trying to create 2 roll up summary fields, on my account object to pull from fields on my opportunities object. I see the 2 roll up summary fields that I created in my account object manager, but they aren't showing on account object. So checked Schema to see if they have a Master Detail relationship and it doesn't appear that they do. But there is no option for me to create one with Account Object being the Master. Is that because they are in lookup relationship? trying to figure out why these (2) Roll up summary Fields I created on my account object to pull from fields on my Opportunities Object aren't showing. The only think I can come up with is they don't have a Master Detail relationship, but the Master Details Relationship option is not there in my fields and relationships section of the object manager for both Account Object and Opportunities Object - the only options I see are Lookup relationship and external relationship. Please Help

 

#Trailhead Challenges

0/9000