-
Help me on the given Salesforce Trigger Scenario
Scenario 1.
1) Make two number fields on contact object Amount_X Amount_Y
2) Make one picklist field "Type" , values ('Positive', 'Negative')
3) Make two number fields on account Rollup_Amount_X Rollup_Amount_Y Rollup_Amount
4) Make one trigger on contact object, which will do following: --> Sum all child of contact's field "Amount_X" and store in parent account's "Rollup_Amount_X" Where Type is "Positive" --> Sum all child of contact's field "Amount_Y" and store in parent account's "Rollup_Amount_Y" Where Type is "Negative" --> Sum all child of contact's field "Amount_X" + "Amount_Y" and store in parent account's "Rollup_Amount"
5) Make trigger as bulk / Test class
Log In to reply.
Popular Salesforce Blogs
Key Considerations for Developing AppExchange Strategy
When developing an AppExchange strategy for your Salesforce app, several key factors are important to keep in mind to ensure success and maximize the impact…
Seamless Salesforce Data Migration Solution for Nested Parent-Child Relationships with iSyncSF
Introduction Data migration is a critical process for businesses transitioning to Salesforce or consolidating their existing data within the platform. Salesforce offers a robust platform…
Salesforce 3CX Integration | All You Need to Know
In the ever-evolving landscape of customer relationship management (CRM), businesses are constantly seeking innovative solutions to streamline communication and enhance efficiency. Salesforce 3CX Integration emerges…
Popular Salesforce Videos
How does Salesforce Field Service Platform increase servicing revenue for your company
CRM Salesforce, along with its Field Service Lightning App, is drastically improving the field-force productivity in the industry. Built on the Salesforce Service Cloud, it…
Email to Case Advance | Converting Cases from Emails Effectively | Salesforce Tutorial
Email-to-Case Advance is an enhanced version of the Salesforce Email-to-Case functionality that converts customer email to cases. It works for Salesforce Service Cloud and provides…
Basics of Salesforce Flow in 15 minutes
In this video, Jitendra Zaa gives a detailed overview of the basics of Salesforce Flow in just 15 minutes. He covers everything from how to…