-
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
How to Improve Salesforce Adoption Rates Through Customization
“Is this necessary?” “We’ve always done it this way.” “That is a steep learning curve to navigate.” All of us hear one or all of…
Salesforce : Data Protection Law In Europe
European Union Privacy Law Basics Europe was facing issues of privacy and data protection since decades. Now, the European Union (EU) has introduced a comprehensive…
Debug and Deployment Tools in Salesforce
Development Tools In Salesforce 1. Developer Edition Environment You may start designing and testing your software-as-a-service application right now in this online environment. Designed for…
Popular Salesforce Videos
Skills for Salesforce Field Service | Optimize Customer Service for Businesses | Salesforce Webinar
One way to optimize customer service operations is by having the right technician for the right job. How? Skills for Salesforce Field Service is the…
How To Become a Salesforce Developer [Perfect Guide for Beginners]
Curious about a career in Salesforce development? Our video is your concise guide to getting started. What's inside:→ The average salary for a Salesforce Developer…
How to Find out Who Deleted a Record in Salesforce
Salesforce administrators can determine who deleted a record by looking at the Recycle Bin or querying for deleted records via API. Watch this video and…