-
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

Use Salesforce Implementation Consultants to Get your Business CRM Up and Running by 2023.
The top companies of today are increasing their the profits of their business by adopting an all-encompassing strategy for Salesforce CRM. Salesforce, the best CRM system,…

Important Salesforce Trends To Watch Out For In 2022
Salesforce has been helping organizations manage their customer databases and automate their business processes for more than two decades now. The CRM platform is known…

What is the Content Security Policy (CSP) in Salesforce in 2023?
This is a set of guidelines for securing websites that developers and system administrators may use. Clickjacking, cross-site scripting (XSS), and other code injection attacks…
Popular Salesforce Videos
Overview of Salesforce Development Course | Learn Salesforce Development From Scratch
In this video, Shrey has given a detailed overview of the Salesforce Development Course. You will learn the following topics from this course: Salesforce Development…
Accenture + Salesforce: Making an Impact
Our people and communities are important connection points for support. Hear more from our Salesforce professionals. Check out this video to learn everything you need…
How to Create a New User in Salesforce Marketing Cloud
Cameron Robert steps through how to Create a New User in Salesforce Marketing Cloud and then assigns them Roles and Associates them with Business Units. Key…