-
Update Parent Record from a Salesforce trigger
I have been trying to come up with the pattern in which I need to handle the below scenario ( considering recursion ).
On Insertion of Child Record ( Object - B ) I need to update parent record ( object - A) as well as conditionally insert an object ( object - B again ).
Could anyone point me what is the best way to handle this kind of scenario?
** EDIT **
Sorry if it is confusing. Giving another shot 🙂
Initially Insert record for Object B ( consider of type Apple), after that update Object A and then based on some criteria create new records for Object B ( this time it might be Mango and Orange ) again after that need to update Object A.
Log In to reply.
Popular Salesforce Blogs
A Guide to Utilizing the Salesforce Customer Portal in Academia
Educational institutions have undergone significant changes over the years. Entering the early 2000s, these institutions gradually embraced technology by introducing advanced computer labs that allowed…
How to Use Workbench in Salesforce | Developer Guide
Workbench can be a web-based tool that helps administrators and developers to act with Salesforce for information Insert, Update, Upsert, Delete, and Export. It in…
Popular Salesforce Videos
Top 3 Interview Tips | How To Land A Salesforce Job
In this video, brad discusses the TOP 3 ways to nail your interview and land a job as a Salesforce Professional. These tips apply to…
Salesforce for Beginners | Getting Started with Salesforce and CRM
Chapter 1 of Salesforce for Beginner. It includes the following topics: 00:11 Login and Navigation 00:31 App launcher 00:48 Search 01:15 List Views 02:23 Salesforce…
Get Started with Salesforce Application Security
Let the right users in at the right time, and give them access to the right data. With the growth of a mobile and remote…