-
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.