function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aaryansriaaryansri 

How to write trigger for changes on third object after insert or update ?

For the below triggers after insert is written .Please help me to after update. 


1) Enable account team member
follow navigation  setup==>customize==>account====>Account teams .
once you enable this accountteam member object is added to related list of account.
2) create one check box VPA on account object.
now the requirement is:

create one record in account (call parent record) mention VPA enable and don't select parent look up field.
create  one more record in account(call child) uncheck VPA and select (parent record) as parent for this child record using look up.
here VPA is enable means that record is parent other wise it's a child record...

Need to be achieve:
1) once you create a child record then owner of parent record should be add to child   related accountteam member.(parent owner should be insert as accounteam meber to child)
2) if you change the owner in parent it should replace the old owner with new onwer.
Ramu_SFDCRamu_SFDC
Hi,

Please review my reply to a post on similar requirment at the link https://developer.salesforce.com/forums/?id=906F00000009XvSIAU

Hope that helps !!

Thanks,
Ramu