-
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
10 Reasons You Need a Salesforce Support and Maintenance Partner in 2021
The secret behind the selection of Salesforce maintenance for supervising the marketing processes lies since it assists in improving the business continuously and manages the customer's contentment efficiently. Support…
Driving engagement and Sales using Salesforce Marketing Cloud and Pardot
Digital marketing has seen explosive growth in the recent years due to the high adoption of digital technologies. According to Mary Meeker’s Internet Trends Report…
Overcome Integration Mistakes With Salesforce Partners
In the age of API (application programming interface) and iPaaS (integration platform as a Service), enterprise data can easily be unified. Organizations are using the…
Popular Salesforce Videos
Salesforce User Stories in Action
Join this interactive session to understand how to write Salesforce-specific user stories, how to prioritize user stories, and learn some guidelines around story estimation. Topics:…
Introduction to Salesforce CMS
Salesforce CMS is a hybrid content management system, where you can curate and share content, manage multiple language versions of your content, and control who creates…
Get Started with Salesforce Elevate
Salesforce is a powerful tool to analyze your past fundraising, and monitor your ongoing efforts. In this webinar, we'll start with the fundamentals -- understanding…