Here is the logic so you can try coding for this trigger.
1. Create a lookup field on Object3__c, lookup type of Object1__c. 2. Write a trigger on object3__c (on insert and update event event) and check whatever record (of object2__c), object3__c associated with, fetch out all child records (object1__c type) of Object2__c. You may apply a generic SOQL for this and maintain a map. 3. Finally link your object3__c record with these fetched records(of object1__c type) as parent record to.
Here is the logic so you can try coding for this trigger.
1. Create a lookup field on Object3__c, lookup type of Object1__c. 2. Write a trigger on object3__c (on insert and update event event) and check whatever record (of object2__c), object3__c associated with, fetch out all child records (object1__c type) of Object2__c. You may apply a generic SOQL for this and maintain a map. 3. Finally link your object3__c record with these fetched records(of object1__c type) as parent record to.
Here is the logic so you can try coding for this trigger.
1. Create a lookup field on Object3__c, lookup type of Object1__c.
2. Write a trigger on object3__c (on insert and update event event) and check whatever record (of object2__c), object3__c associated with, fetch out all child records (object1__c type) of Object2__c. You may apply a generic SOQL for this and maintain a map.
3. Finally link your object3__c record with these fetched records(of object1__c type) as parent record to.
Thanks
Sandeep Singhal
http://www.codespokes.com/
All Answers
Here is the logic so you can try coding for this trigger.
1. Create a lookup field on Object3__c, lookup type of Object1__c.
2. Write a trigger on object3__c (on insert and update event event) and check whatever record (of object2__c), object3__c associated with, fetch out all child records (object1__c type) of Object2__c. You may apply a generic SOQL for this and maintain a map.
3. Finally link your object3__c record with these fetched records(of object1__c type) as parent record to.
Thanks
Sandeep Singhal
http://www.codespokes.com/