-
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
Is Salesforce Too Expensive? 5 Ways To Control The Benefit-cost Ratio
When I discuss Salesforce with others, I'm often confronted with an argument that Salesforce is far too expensive and can be substituted with much cheaper…
Salesforce Shield Platform Encryption Guide
Shield Platform Encryption As organizations store more sensitive data, like actually recognizable data (PII), in the cloud, they need to guarantee the protection and classification…
CPQ and CRM: The Best of both Worlds to Empower your Sales Teams
How efficient are your sales processes? While there may not be a definitive answer to this question, it makes us rethink our sales processes and…
Popular Salesforce Videos
What Are Top 5 Salesforce Career Entry Jobs?
Wondering what are Top 5 Salesforce career entry jobs? Join this useful group for Salesforce job & career info. https://tinyurl.com/TelegramIntelogik
Creating an Approval Process in Salesforce with Example
Approval Process in Salesforce is an automated process that automates how Salesforce records are approved in your org. Approval Process in Salesforce is a combination…
Get Lookup Data From Salesforce Using Relationship Queries
Watch this video to learn how you can create a smart query that will make the lookup show only part of the data.