Skip to main content

#Trailhead Challenges1,949 discussing

Hands-on challenges are the “secret sauce” of Trailhead. Before searching for solutions to superbadge challenges, review the Salesforce Certification Program Agreement and Policies. ** NOTE ** : If you were able to get a response that solved your issue, please mark it as the 'Best Answer' to help other Trailblazers. If the issue persists after 48 hours, create a Trailhead Help case at https://help.salesforce.com/s/support for further assistance.
0/9000

Hi Trailblazers! 👋

I’m Jagadeeswari, a passionate Salesforce Technical Consultant from India with 2 years and 10 months of hands-on experience, currently exploring new opportunities in the Salesforce ecosystem.

 

🔹

Open to:

• Full-time roles 

• Part-time opportunities 

• Freelance projects

 

🌍

Location & Work Preference:

 Based in India and highly interested in collaborating globally (Onshore/Offshore projects)

 

🔹

Experience Level:

  Entry-level to Mid-level roles

 

🔹

Certifications:

✔ Salesforce Certified Administrator 

✔ Platform Developer I 

✔ Service Cloud Consultant 

✔ Field Service Lightning Consultant 

✔ Agentforce Specialist

 

🔹

Key Skills & Expertise:

• Salesforce Sales, Service & Field Service Cloud 

• Apex, Triggers, SOQL & Lightning Web Components (LWC) 

• Flows, Approval Processes & Automation 

• Integrations (REST/SOAP), Platform Events & SSO 

• Experience Cloud & Omni-Channel 

• Agentforce, Data Cloud & AI (LLMs, Prompt Engineering, LangChain) 

• Field Service: Work Types, Work Plans, Inventory, Mobile Customization

 

🔹

Strengths:

• Strong willingness to learn and adapt quickly

• Research-oriented mindset with a focus on problem-solving 

• Ability to work independently and take ownership of tasks

 

🔹

Recent Work Highlights:

 

✨ Built an AI-powered course enrollment assistant using Agentforce with personalized guidance 

✨ Implemented Field Service solutions improving technician efficiency & automation 

✨ Developed Experience Cloud sites 

 

I’m enthusiastic about contributing to global teams

, building scalable AI-driven Salesforce solutions, and continuously growing within the ecosystem. 

 

If you’re hiring or know of any relevant opportunities, I would truly appreciate your referrals. 

 

📩 Feel free to connect with me here or via LinkedIn

 

 

#Salesforce #Trailhead  #Hiring #Freelance Project Work #Agentforce #AI #Salesforce Developer #Salesforce Admin    #Trailhead Challenges  #Certifications

0/9000
2 answers
  1. Sep 5, 2023, 1:31 AM

    Hi @Noman zada

     

    "Thank you for contacting Trailhead Help. After reviewing your case, I have confirmed there are no platform issues or bugs associated with this superbadge.

     

    The Trailhead Help team is unable to share solutions or hints or debug any incorrect configuration or code. Please remember superbadges are credentials intended to test an individual Trailblazer's skills and abilities.

     

    Providing or requesting step-by-step guidance and/or specific solutions is a violation of the Salesforce Credential and Certification Program Agreement and is not permitted.

     

    I recommend you review the superbadge prerequisites and the associated help article <https://trailhead.salesforce.com/help?article=CRM-Analytics-and-Einstein-Discovery-Insights-Specialist-Superbadge-Trailhead-Challenge-Help> to help unblock you from completing this superbadge.

     

    Regards,

    Ghouse

     

    Trailhead Help

0/9000

"An unexpected error occurred while testing different scenarios. We were unable to insert Account or Contact records as expected. Check your org for other customization that might interfere with record creation, then click "Check Challenge" again. If this continues, contact the Salesforce Help team."

 

 

 

#Trailhead Challenges

0/9000

Challenge Not yet complete... here's what's wrong: 

We can't check your work because something in your org prevents executing the generateRatingParams method from the GuestReviewRatingCalculator class. 

 

#Trailhead Challenges  #Trailhead Superbadges

18 answers
  1. Aug 7, 2025, 7:22 PM

    @Camille Larose

    - following is the content of the comment 

     

     

    Just wrapping up my experience with

    Challenge 3 — thought the details might be useful.

    Initially, I encountered the error:

    This was resolved by adding @AuraEnabled, as per the documentation in Exercise 1: Invoke Prompt Templates from Apex and Lightning Web Components

     

    However, after completing the Apex implementation, the challenge still failed with a generic error asking to contact Trailhead support, despite everything looking correct.

    After some experimentation, I decided to remove @AuraEnabled

    entirely since LWC wasn’t required for this challenge, and that did the trick. 

     

    Challenge Passed Successfully

    So the final fix was to not use @AuraEnabled at all, even though it resolved one of the initial errors.

     

    Sharing Apex code, in case others run into the same confusing behavior.

    public class GuestReviewRatingCalculator {

    public Experience__c generateRatingParams(String experienceId){

    System.debug(experienceId);

    Map<String, String> experience = new Map<String, String>();

    experience.put('id', experienceId);

    ConnectApi.WrappedValue experienceValue = new ConnectApi.WrappedValue();

    experienceValue.value = experience;

    Map<String, ConnectApi.WrappedValue> inputParams = new Map<String, ConnectApi.WrappedValue>();

    // List<Experience__c> exps = [SELECT Id, Name, Communication__c, Value__c, Accuracy__c FROM Experience__c where Id=:experienceId];

    //TO-DO Configure Prompt Template Input API Name(Input:experience)

    inputParams.put('Input:experience', experienceValue);

    // Configure invocation parameters

    ConnectApi.EinsteinPromptTemplateGenerationsInput executeTemplateInput = new ConnectApi.EinsteinPromptTemplateGenerationsInput();

    executeTemplateInput.additionalConfig = new ConnectApi.EinsteinLlmAdditionalConfigInput();

    executeTemplateInput.additionalConfig.applicationName = 'PromptBuilderPreview';

    executeTemplateInput.isPreview = false;

    executeTemplateInput.inputParams = inputParams;

    try {

    //TO-DO Call the service generateMessagesForPromptTemplate to generate response by specifying the prompt template API name and input parameters

    ConnectApi.EinsteinPromptTemplateGenerationsRepresentation generationsOutput = ConnectApi.EinsteinLLM.generateMessagesForPromptTemplate(

    'Experience_Guest_Reviews_Evaluator',

    executeTemplateInput

    );

    //TO-DO Extract the response text from generations property

    ConnectApi.EinsteinLLMGenerationItemOutput response = generationsOutput.generations[0];

    //Deserialize the response

    Map<String, Object> jsonMap = (Map<String, Object>) JSON.deserializeUntyped(response.text);

    Decimal accuracy = jsonMap.containsKey('Accuracy') ? (Decimal) jsonMap.get('Accuracy') : 0;

    Decimal value = jsonMap.containsKey('Value') ? (Decimal) jsonMap.get('Value') : 0;

    Decimal communication = jsonMap.containsKey('Communication') ? (Decimal) jsonMap.get('Communication') : 0;

    //Update the Experience record with the deserialized response

    Experience__c exp = new Experience__c(Id=experienceId, Value__c =value, Accuracy__c=accuracy, Communication__c = communication);

    update exp;

    return exp;

    } catch (Exception e){

    System.debug(e.getMessage());

    throw e;

    }

    }

    }

      

     

    Also, can you see older comments over this feed?

0/9000

Hi there! My playground that I built the agent in vs the developer agent are not connecting for some reason, and when I try to work through the "Help a Guest Out of a Soggy Situation" my agent is showing an error message in the Coral app. How can I bypass this?   

18 answers
  1. Jan 13, 5:59 PM

    I did the first step of the instructions mentioned below and it worked!  

     

    Here are some steps and resources to help resolve the issues you're facing with the Agentforce setup and the Coral app error:

    1. Connecting Playground and Developer Agent

    • Ensure that the Salesforce CRM connection is reactivated in the sandbox environment. Follow these steps:
      1. Go to Setup > Einstein Setup and toggle on Einstein.
      2. Navigate to Setup > Agentforce Agents and toggle on Agentforce.
      3. Ensure Einstein Bot is turned on in Setup > Einstein Bot.
      4. Verify that Data Cloud Setup Home is enabled.
    • If you encounter an error indicating that agents are still being provisioned, toggle the Agentforce setting and try again.
    • Reference: Agentforce Activation in Sandbox1

    ___

    2. Error in Coral App

    • If the Coral app displays an error like "Something went wrong. Refresh conversation and try again," ensure the following:
      1. Check that Lightning Experience users have the correct permissions for the specific agent.
      2. Navigate to Setup > Permission Sets or Profiles.
      3. Select the relevant Permission Set or Profile and click Enabled Agent Access.
      4. Edit the Enabled Agent Access section, select the agent(s) users should have access to, and move them to the Enabled Agents list.
      5. Save changes, refresh the page, and verify if the error is resolved.
    • Note: If the issue persists, contact Salesforce Support for further assistance.
    • Reference: Manage Employee Agent Access2

    ___

    3. Testing the Coral Cloud Experience Agent

    • To test the Coral Cloud Experience Agent:
      1. Activate the Coral Cloud Experience Agent.
      2. Publish the ESA Web Deployment:
        • Go to Setup Quick Find > Embedded Service Deployments.
        • Select ESA Web Deployment and click Publish.
      3. Activate Messaging:
        • Go to Setup Quick Find > Messaging Settings and toggle Messaging to On.
      4. Publish the Experience Cloud Site:
        • Go to Setup Quick Find > All Sites.
        • Select Builder next to the coral-cloud site and click Publish.
      5. Configure the Flow:
        • Update the Service Channel to Messaging.
        • Set the Route To field to Agentforce Service Agent.
        • Save as a new version and activate the flow.
      6. Add the Coral Cloud Experience Agent to the coral-cloud site:
        • Add the Embedded Messaging component to the site and publish the changes.
      7. Enable standard external profiles login:
        • Go to Setup Quick Find > Digital Experience | Settings.
        • Select the checkbox Allow using standard external profiles for self-registration, user creation, and login, and save.
    • Reference: Apex for Agentforce Superbadge3

    ___

    4. Additional Tips

    • Before adding the Embedded Messaging component to the coral-cloud site, ensure the site and ESA Web Deployment are published.
    • If you encounter the error "Copilot Version cannot be activated," toggle the Agentforce setting and try again.
    • Reference: Agentforce Service Superbadge4
0/9000

 

This error is coming again and again . I have covered the test class 10% and testing the API with workbench rest explorer and  it's working fine. Can someone help?

I am trying to complete Apex Web services trailhead but even after the API running successfully and the test covering 100%  coverage getting this errorimage.png

 

 

 

#Trailhead Challenges

2 answers
  1. Jan 21, 7:01 AM

    Hi @Srikrishna Ghosh -  Make sure you have saved the code

    AccountManager

    @RestResource(urlMapping='/Accounts/*/contacts/')

    global with sharing class AccountManager {

    @HttpGet

    global static Account getAccount() {

    RestRequest request = RestContext.request;

    String accountId = request.requestURI.substringBetween('/Accounts/', '/');

    Account result = [Select Id, Name, (Select Id, Name FROM Contacts) FROM Account WHERE Id = :accountId LIMIT 1];

    return result;

    }

    }

    AccountManagerTest

    @IsTest

    private class AccountManagerTest {

    @isTest

    static void testGetContactsByAccountId() {

    Id recordId = createTestRecord();

    RestRequest request = new RestRequest();

    request.requestUri = 'https://yourInstance.my.salesforce.com/services/apexrest/Accounts/'+recordId+'/contacts';

    request.httpMethod = 'GET';

    RestContext.request = request;

    Account thisAccount = AccountManager.getAccount();

    System.assert(thisAccount != null);

    System.assertEquals('TestRecord', thisAccount.Name);

    }

    static Id createTestRecord(){

    Account accountTest = new Account(

    Name = 'TestRecord');

    insert accountTest;

    Contact contactTest = new Contact (

    FirstName = 'Khakan',

    LastName = 'Ispakhev',

    AccountId = accountTest.Id

    );

    insert contactTest;

    return accountTest.Id;

    }

    }

     

     Please check

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Jfc9KSAR

0/9000