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