-
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
Process Builder in Salesforce - All You Need to Know
If you are thinking about how to perform business tasks automatically and also without even writing a single piece of code and you can perform…
Salesforce Skills Needed To Get Hired In Top MNCs
Need to find a superior employment option in 2018? If your answer is yes then there is one thing that you need to complete in…
Why Salesforce Apex Trigger is Unique?
What is Salesforce Apex Trigger? A trigger is a piece of code that executes automatically in response to a specific event, such as the creation…
Popular Salesforce Videos
Drive Personalized and Scalable Idea Management in Salesforce Community Cloud with IdeasPro
IdeasPro enables you to implement the best of business ideas from your Salesforce community. Foster innovation, improve brand transparency, and make the most of internal…
Build a Discount Approval Process | Step by Step Guide | Trailhead Project
Building a robust discount approval process is the first step in getting a grip of price discounts that are eating into profit. In this video…
Develop a Basic Slack App For Salesforce
Build Slack Apps integrated with Salesforce. Use Heroku to host Slack apps built using Slack Bolt Framework and get connected to Salesforce using Node.js library…