+ Start a Discussion
Victor19Victor19 

Trigger not populating lookup field value from one object to an other object

Hi,

I am trying to copy a look up field value (User__c) from Test_Object_2__c to Test_Object_1__c . Basically based on the lookup field (Test_Object_2__c) in Test_Object_1__c object  I am pulling out the User__c and Group_Name__c field values from Test_Object_2__c to use it in Test_Object_1__c.
I have no issues copying the Group_Name__c as it is a text field,


Thanks

bob_buzzardbob_buzzard

When you say you are unable to copy it, do you get an error?

 

Are you certain that the lookup field is populated in test object 2 by the time this trigger gets called (i.e. it isn't being set by another trigger that is getting called first?).