-
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
All About Salesforce High-Velocity Sales
Salesforce is the most popular CRM among enterprises due to its extensive features and rich functionalities. The structure of the Salesforce Customer Relationship Management system is designed…
Inserting Data into Salesforce Data Extensions Using Cloud Pages and If-Else Conditional Statement in AMPscript
This blog brings you an interesting topic: How to save data into Salesforce data extensions via cloud pages and using If-Else statements. As you must…
Accelerate Digital Transformation Initiatives With Salesforce Lightning Implementation
Are you a third-party CRM user and planning to implement a Salesforce CRM? Or, do you want to switch from Salesforce to the Salesforce Lightning…
Popular Salesforce Videos
Salesforce Platform Quick Tip: How to Optimize UI for Mobile Users
How do you design Salesforce for use on either a desktop monitor or a phone? What looks great on a big monitor looks crowded on…
24 hours on the salesforce platform
Dreamforce ’18 gave us new ways to talk to Einstein, and new ways to talk about equality with Adam Rippon. We looked at customers from…
WWE Connector for Salesforce
In this quick video we will show the Workspace Web Edition Connector for Salesforce. The WWE Connector leverage a powerful browser extension to guarantee a…