-
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
Entering A New Realm: Salesforce Partners With Alibaba
Salesforce, which is the leading CRM (Customer Relationship Management) solutions provider in the world, has now entered into a strategic partnership with China’s largest Internet…
Lightning Components & AuraEnabled Method : What’s Working & What’s Not?
Parameters Passing from Client-Side to Server-Side is the much-needed part for Lightning component development. Prerequisite to pass a parameter from client-side to server-side: Value of…
Salesforce Classic vs. Salesforce Lightning - Which Is Better
There's really no denying that technology has taken huge leaps in the past decades. With the advent of app development reaching newer and higher levels…
Popular Salesforce Videos
What are Search Layouts in Salesforce?
In this video, Shrey is not only teaching but also demonstrating to you "What are Search Layouts in Salesforce". You will be learning: 1. How…
Introduction to Report and Dashboard in Salesforce | Salesforce Training Videos
A report is a list of records that meet the criteria you define. It's displayed in Salesforce in rows and columns, and can be filtered,…