-
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 Secret to Successful Email Marketing: Salesforce Marketing Cloud's Automation
Any marketing strategy still needs to include email marketing, and because of the development of marketing automation, it is now simpler than ever to design…
How to Design Webpages for Nonprofits Faster Using Salesforce
How to Design Webpages for Nonprofits Faster Using Salesforce Nonprofits are now looking to create smooth integration between their web pages and the Salesforce platform.…
Salesforce Implementation Guide - All You Need to know
In 2021, it is safe to say that the world revolves around extracting, accessing, and managing data. It has rightly been called the “digital gold”…
Popular Salesforce Videos
The Secret Truth of Automating Processes in Salesforce
Just because you CAN AUTOMATE something in Salesforce, DOESN'T MEAN YOU SHOULD! Join for an insightful and entertaining discussion where you will learn: - How…
What are Search Layouts in Salesforce?
In this video, Shrey is not only teaching but also demonstrating to you "What are Search Layouts in Salesforce". You will be learning: 1. How…
How to Become a Salesforce Developer? No Programming Experience Needed
Salesforce Developer has once again been named one of the world's best jobs. In a list of 25 job roles, Salesforce was the only company…