You need to sign in to do that
Don't have an account?
GRStevenBrookes
Easy Trigger Help
Hi,
Cant get my head around this!
I am trying to write what I perceive to be quite a simple trigger.
I have two objects, the standard Account object and a custom object (Master-Detail (Child)) Service_Agreement__c.
When the Owner is changed on the Accoutn object, I need the field Account_Manager_Senior_PA__c on all of the child Service_Agreement__c records (which is connected to the User Object) to be updated with the same 'Owner'.
I have started by using:
trigger UpdateServiceAgreement_WhenAccMgrAllocated on Account (after update) { List<Service_Agreement__c> si = [select Id, Account_Manager_Senior_PA__c from Service_Agreement__c where Account in: Trigger.new ]; for(Service_Agreement__c sic : si){ sic.Account_Manager_Senior_PA__c = ?????; } update si; }
...but @ ?????? get stuck!! not even sure if this would work anyhow.
Any help MUCH apprecaited.
Steve
Saikishore Reddy Aengareddy