-
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
The endless configuration possibilities with Salesforce data — for phones and tablets
So, you decided to go mobile with Salesforce for your sales, field service and further teams that work outside the office doors. Now, you get two options to…
How Cloud CRM Helps Automate Business Processes?
CRM software is the backbone of customer experience operations for most businesses today. In fact, the global market for CRM solutions is growing at a…
Quick Tips for Managing Multiple Marketing Cloud Instances
It requires art to manage multiple cloud instances, specifically when aiming to maintain efficient, consistent, and effective communication across different platforms. Marketing cloud platforms include…
Popular Salesforce Videos
Apex Design Patterns : The Singleton Pattern in Salesforce || #Salesforce #DesignPatterns
The Singleton Pattern One Private variable of the class itself will hold the instance of the complete class so that we can access all the…
How you can Increase your Salesforce Efficiency and Productivity
In this video, Brad discusses how to increase your workplace efficiency and productivity using various Google Chrome extensions and techniques. As always, we have linked…
How to import data from Sage ERP to Salesforce - Part 1
Greytrix offers GUMU™ integration for Salesforce with Sage ERP systems - a best-of-breed solution for organizations to enhance their customer interaction. With Salesforce and Sage…