-
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

How to Implement Salesforce Sales Cloud & Its Benefits?
Salesforce offers many comprehensive tools and platforms to numerous organizations working in various domains. These platforms include sales, service, marketing, commerce, etc., offering multiple efficient modules…

Top 7 New Salesforce Flow Features in Winter 23
I usually go right to the Salesforce Flow area when the Salesforce release notes are out because, well, there is already a lot of amazing…

Learn All About SOQL in Salesforce
SOQL SOQL is a language that extracts data from the Salesforce database. In Object-Oriented Programming for Admins you found that you can use Data Manipulation…
Popular Salesforce Videos
Salesforce Lightning Process Builder: Lightning Process Builder Basics
The Salesforce Lightning Process Builder is a new workflow tool that helps anyone in your company quickly and easily automate business processes such as employee…
Enterprise Architecture in Salesforce
Enterprise Architecture in Salesforce 0:00 Introduction 3:24 What is Enterprise Architecture? 5:11 Why do we need Enterprise Architecture? 7:00 EA Methodology 11:37 Business Strategy 15:15…
Introduction to Salesforce Marketing Cloud
Hello Everyone, In this video, by Amit Singh, we will talk about the basic introduction of the Marketing Cloud in Salesforce. Watch the video and…