-
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
Salesforce Dynamic Forms: Overview, Benefits, Business Cases
On a user page layout in Salesforce might be placed a monolit block of fields which makes customization impossible. The task of Dynamic Forms is…
Salesforce Admin Tips For A User-Friendly Org
When we talk about the term user-friendly, what comes to your mind? Obviously, something that is not difficult for the user to use? Now when…
Popular Salesforce Videos
Salesforce Data Loader Tutorial
The Salesforce Data Loader is an easy to use graphical tool that helps you to get your data into Salesforce objects. The Data Loader can…
What are Custom Settings in Salesforce?
Custom settings are similar to custom objects in that they let you customize org data. Unlike custom objects, which have records based on them, custom…
Benefit of User Centric Design (UCD)
User-Centric Design (UCD) puts people at the heart of product development, ensuring your interface, features, and user journey are built for real needs, not assumptions.…