-
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
Best Practices for Salesforce Data Migration
Conducting data migration from or into Salesforce can be time-consuming but a necessary task. Data migration is a challenge for any enterprise. You might face…
How to Integrate Data from Third-party Systems with your Salesforce Org?
This article is prepared by our Salesforce Certified Administrator Veronika Klimova. Certainly! Jitterbit, Zapier, and MuleSoft are three popular platforms for data integrations, each with its own strengths and…
4 Benefits to Using Data Classification in Salesforce
Your Salesforce Org stores a ton of sensitive information; keeping things compliant and private — while still maintaining the pace of change — requires resources…
Popular Salesforce Videos
What are Global Picklists and Field Dependency in Salesforce? | How to Create Global Picklists?
In this video, Shrey is not only teaching but also demonstrating to you "What are Global Picklists & Field Dependency in Salesforce?". You will be…
How I Really Feel About Salesforce
A deep dive into the state of the Salesforce industry in 2021, such as: - Is Salesforce going to crash in the foreseeable future? -…
5 Tips: How Events Can Help You Drive Value for Your Business | Salesforce on Salesforce
Events are at the heart of every major launch moment and announcement. They offer opportunities to connect with customers, providing experiences that grow loyalty. And…