-
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

Your Complete Guide to Salesforce Pardot
Pardot is a marketing automation platform similar to Marketing Cloud except it’s designed specifically for B2B contexts. It’s built with ease of use in mind,…

Salesforce Financial Services Cloud Implementation Guide
You’ve decided to use Salesforce Financial Services Cloud, but you may not know where to begin. How can you utilize Salesforce to track all your…
Popular Salesforce Videos
Financial Services Cloud – Release Readiness LIVE, Summer '19
Hear about some of the new and exciting features that you can expect from Financial Services Cloud in the Summer '19 Release. Highlights include: -…
Why Should You Attend Dreamforce To You 2020
Dreamforce - The event which brings together the entire Salesforce community is just around the corner. Learn why there’s so much hype around this mega…
Salesforce Apex Tutorial: Data Types
In this lesson, we are covering Salesforce Apex Data Types and we are covering primitive data types.