-
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
Mail a Table of Opportunity Records With a Link of Detail Page | Salesforce Tutorial
In this blog, we have checked the closedDate of the whole Opportunity records and sent a mail of all opportunities whose closedDate is less than…
The Salesforce Implementation Process: What Is It?
Salesforce implementation is the process of integrating and customizing the Salesforce platform to meet the specific needs of a business or organization. Salesforce is a…
5 Real Business Advantages of Salesforce Integration
Businesses are linking systems, applications, and tools in order to improve their abilities and develop connected ecosystems. For linked structures, the old saying “the whole…
Popular Salesforce Videos
Introduction To Salesforce | Salesforce Training Videos For Beginners
Are you confused to choose the best edition tool? For CRM and Branding then here is the information for you! Salesforce is one of the…
External ID In Salesforce | Salesforce Training
In this video, you will learn how to use External ID in Salesforce, usage, limitations and implementation of External ID in Salesforce. The following points…