-
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
An Introduction to Salesforce App Builder: Revolutionizing Business with Custom Applications
In the digital age, the ability to quickly adapt and innovate is crucial for businesses seeking to maintain a competitive edge. Salesforce, a global leader…
Salesforce Development Services Trends to Watch Out in 2022
Salesforce is a CRM solution responsible for connecting companies and customers. The need for Salesforce services is increasing day by day. These services are beneficial…
Dreamforce 2024: What Can You Look Forward To?
Table of Contents Dreamforce 2024 Learn the Hows and Whys of Trusted AI Be on the Cutting Edge of AI Navigate Future Trends Plan…
Popular Salesforce Videos
Salesforce Lightning Development Tutorial - Hello World!
Salesforce Lightning Custom Component Development Tutorial for Beginners - Let us implement our first custom lightning component - Hello World! Video Resource: Lightning Evangelist
Use Case Hierarchy to Link Cases in Salesforce
Want to link your cases, so you and your team have a complete view of what’s going on with a customer? Do you want to…
5 Tips on How to Run Your Pipeline Engine to Drive Growth | Salesforce on Salesforce
Salesforce’s revenue has been on a firm upward trajectory for years, and every year we see terrific growth. How do we do it? I’ll let…