Skip to main content Heads Up, Trailblazers! Potential Impact to Playgrounds: We're performing some important maintenance beginning on June 27th, 2025. During this time, some of you might temporarily have trouble creating a new Trailhead Playground. If you hit a snag, please try again a bit later. Thanks for your patience as we work to improve your learning experience!

Feed

Connect with fellow Trailblazers. Ask and answer questions to build your skills and network.
7 answers
0/9000

I am trying to insert the BundleBasedAdjustment record in an Apex Test class and getting a Salesforce Internal Error any ideas what i might be missing here is the code i was trying to run 

 

@isTest 

private class CreateRcaBundleWithAdjustmentTest { 

 

    @isTest 

    static void insertBundleBasedAdjustmentRecord() { 

        // 1. Create Bundle Parent Product 

        Product2 bundle = new Product2( 

            Name = 'Bundle Product', 

            IsActive = true, 

            Family = 'Hardware', 

            Type = 'Bundle' 

        ); 

        insert bundle; 

 

        // 2. Create Component Product 

        Product2 component = new Product2( 

            Name = 'Child Product A', 

            IsActive = true, 

            Family = 'Hardware' 

           

        ); 

        insert component; 

 

        // 3. Get Standard Pricebook and add PricebookEntries 

        Id stdPbId = Test.getStandardPricebookId(); 

        insert new List<PricebookEntry>{ 

            new PricebookEntry(Product2Id =

bundle.Id

, Pricebook2Id = stdPbId, UnitPrice = 100, IsActive = true), 

            new PricebookEntry(Product2Id =

component.Id

, Pricebook2Id = stdPbId, UnitPrice = 50, IsActive = true) 

        }; 

 

        // 4. Create Selling Model 

        ProductSellingModel psm = new ProductSellingModel( 

            Name = 'One Time Model', 

            sellingModelType = 'OneTime', 

            status = 'Active' 

        ); 

        insert psm; 

 

        // 5. Associate Selling Model to Products 

        insert new List<ProductSellingModelOption>{ 

            new ProductSellingModelOption(Product2Id =

bundle.Id, ProductSellingModelId = psm.Id

, isDefault = true), 

            new ProductSellingModelOption(Product2Id =

component.Id, ProductSellingModelId = psm.Id

, isDefault = true) 

        }; 

 

        // 6. Insert BundleBasedAdjustment 

        BundleBasedAdjustment bba = new BundleBasedAdjustment( 

            RootBundleId =

bundle.Id

            ParentProductId =

bundle.Id

            ProductId =

component.Id

            AdjustmentType = 'Amount', 

            AdjustmentValue = -10, 

            EffectiveFrom = Date.today() 

        ); 

 

        Test.startTest(); 

        insert bba; 

        Test.stopTest(); 

 

        // Optional: Assert it exists 

        List<BundleBasedAdjustment> results = [SELECT Id FROM BundleBasedAdjustment WHERE ParentProductId = :

bundle.Id

]; 

        System.assertEquals(1, results.size(), 'One BBA record should be created.'); 

    } 

 

#Salesforce Developer

0/9000

Step not yet complete in Agentforce

We can’t find the Get Sessions action. Make sure it has been created and has an API Name of 'Get_Sessions'. 

 

#Trailhead Challenges

0/9000
I took/passed the Admin Cert Maintenance for Summer '18 trailhead  module yesterday. All I see is an additional badge on my trailhead profile. I didn't receive any email confirmation as I did when it was under Webaccessor. My question is will my credentials be maintained...specfically the verification link which goes to the credential/certificate? Thanks - Jeff 
4 answers
0/9000

I am getting following Error while trying to create Agent. The error msg is shown when I click on "Create" button. (Step #8 in 'Create the Agent'). Trailhead link: https://trailhead.salesforce.com/content/learn/projects/quick-start-build-your-first-agent-with-agentforce/configure-an-agentforce-service-agent?trail_id=become-an-agentblazer-champion

 

 

"Error creating agent : java.lang.IllegalArgumentException: An error occurred while checking for user with id: EinsteinServiceAgent User More Details: ERRORS : An error occurred while checking for user with id: EinsteinServiceAgent User WARNINGS :" 

 

 

#Trailhead Challenges

5 answers
  1. Today, 12:38 PM

    Einstein Agent User option does not come in the drop down. And when I manually put this name there, I get the same error.

0/9000

Hi Folks, 

 

I have a question regarding requirements. Our requirement is have a dashboard that displays metrics for employees such as number of tasks, meetings and expenses in a tabular form. But they would like to have the filters on tasks, meetings and Expenses which should filter the employees based on the recent filter that they applied. 

 

I have created one large dataset with outer joins to get tasks, meetings and expenses of the employees. But the challenge here is, since i am using outer join, it creates multiple matches in the target dataset. This is causing the issue with calculations on dashboard, as i am summing on expenses, and it has duplicate entries in dataset. I tried creating unique Identifier in dataset using row_number  to mark only one record for calculation but the issue is when i filter on tasks or events, i loose the metrics for expenses. Am i talking the right approach here. 

 

Any suggestions on this please would be of great help. Thank you in advance.

0/9000

In Become an Agentblazer Champion>> Bring External Data into the Contact Page Layout Module Im facing issue with ruleset creation and its throwing error as "Mappings from Data Streams to the standard Cloud Information Model objects such as Individual and Contact Points are required". Kindly help on priority. 

 

#Trailhead Challenges  #Agentblazer

0/9000

Hello people, I have a POC to testing two real cases with agentforce: as type Service Agent and also, einstein summary tool, to summary messaging sessions.  In my test I have changed originals LLM model from prompt builder to another models. 

To my service agent, i change LLM model to Claude 3.7 in propmt used at action Answers Questions with Knowledge; 

To einstein summary tool, in prompt, I changed to Gemini 2.5 PRO, to generate summary texts about conversation in messaging session. 

 

In yours opinions, which better LLM model to my cases? or which model you are used to Service Agent and Einstein Summary Records. 

 

Thanks!!

5 answers
  1. Today, 1:59 AM

    Hi Esdras,

    Each LLM model has it's own unique way of retrieving data and giving the output.

    Claude models work good, GPT latest version as well work well.

    You can customize any model using Einstein Studio in Data Cloud and this improves uniqueness of response , reduces repeatable words etc.

    For better control its bring your own LLM.

    Do let me know in case of further queries.

    Thanks

0/9000
2 answers
  1. Today, 11:09 AM

    Sorry, I tried in different browsers and incognito mode. But still not working.. I can not able to click the button . 

     

0/9000
0/9000