Before you can do this project, you must complete the
Build a Data Model for a Recruiting App and Customize the User Interface for a Recruiting App projects. The work you do here builds on the work you complete in those projects.
Feed
- Recent Activity
- Created Date
- Questions with an Accepted Answer
- Questions with No Accepted Answer
- Unanswered Questions
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
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
Jul 25, 2018, 8:30 PM Hi Jeffrey,
Based on the information here, they're still working on getting the notifications set up. (http://certification.salesforce.com/credential-status-request)
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
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.
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.
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
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!!
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
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 .
As part of the trail: https://trailhead.salesforce.com/content/learn/modules/data-and-actions-in-flows/combine-variables-data-elements?trail_id=build-flows-with-flow-builder
I need to create a new custom field as part of prework. Can someone please tell how to create a custom field ?
#Trailhead Challenges #Flow #Flows