-
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
Learn All About Salesforce CPQ Discount Schedule
Discount Schedule refers to the discount on the Products based on some particular criteria like Quantity of the product that customers buy, Term of subscription…
Marketing Success Post Pandemic | Salesforce Success Guide
From everything the world has experienced so far, the pandemic has led to two paths—complete paralysis of the business or a springboard towards success. Simply…
Salesforce Classic to Lightning Migration: Major Challenges and Solutions
Salesforce Classic used to be the primary interface for Salesforce users until 2016. But, when compared to other CRM contenders, Salesforce Classic started to be…
Popular Salesforce Videos
How a Veteran can Start Their Career in Salesforce?
Let's Understand how a veteran can start their career in Salesforce? Please watch the full video and like, share and comment. Shrey is a Chief…
What is Salesforce Development? | Salesforce Developer Course
In this video, Shrey has given a detailed overview of the Salesforce Development Course. You will learn the following topics from this course: Apex basics…
Salesforce JavaScript Developer 2 Certification Series
Hi Everyone, SFDC Panther has started the Salesforce JavaScript Certification series and this is the second session of the series. I already have uploaded the…