-
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
Deploying LWC OSS Apps to Heroku With and Without Express API Server | Salesforce Developer Guide
Heroku is a platform-as-a-service offering that enables developers to build, run, and operate apps entirely in the cloud. It Supports programming languages and frameworks like…
Finding the Best Salesforce Consulting Partner: Your Guide to Success
In today's competitive business landscape, organizations across industries are leveraging the power of Salesforce to streamline operations, enhance customer relationships, and drive growth. However, maximizing…
Latest Salesforce Commerce Cloud Feature: Lightning Order Management to Enhance the Order Management Process
If you are in the process of managing end-to-end order management in e-commerce or a product company, you would agree that it is the most…
Popular Salesforce Videos
Future Methods | Asynchronous Apex | Salesforce Tutorial
Asynchronous Apex 1. Future Methods 2. Making callout using future method 3.Avoiding Mixed Dml using Future Method 4. Why sObjects and objects cannot pass as…
Understanding Salesforce Field Service Mobile App - An Overview | AblyPro
Field Service mobile app is an all-in-one tool designed for today’s mobile workforce. Salesforce Field Service Mobile App is an innovative tool designed to help…
Connecting to Salesforce in Outlook
Bring together the two platforms you use everyday: Salesforce and Microsoft Outlook. View and work with Salesforce data directly in your Outlook inbox, create Salesforce…