-
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
Single Sign-on (SSO) for Salesforce with Microsoft Azure AD
What Is SSO? SSO is an abbreviation of Single Sign-On. It is a method for granting access to multiple applications to users with a single…
Role of a Salesforce Administrator: A Comprehensive Guide
In the realm of Salesforce, where businesses strive to optimize customer relationships and streamline operations, the role of a Salesforce Administrator emerges as a linchpin.…
Set Up GIT in Visual Studio Code in macOS | Salesforce Developer Guide
Set up GIT in Visual Studio Code IF you are using Visual Studio Code, you may want to use GIt for version control. Here, we’ll…
Popular Salesforce Videos
Process Builder - A Tool every Salesforce Developer must know
Salesforce Process Builder - A Tool every Salesforce developer must know. Learn how to master Process builder Salesforce to automate your business processes. In this…
Keep Salesforce Field Values Clean in Summer 20 in less than 10 minutes - Salesforce Break
Keep Salesforce Mobile Phone field clean by stripping out the ()- characters from the user entry. Ensuring data quality is a challenge for every Salesforce…
Salesforce Talent Alliance Demo
Salesforce Talent Alliance connects employers to Salesforce candidates and brings new talent into the ecosystem, emphasizing building a diverse workforce that reflects society around the…