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
RonSFRonSF 

Unable to access lookup field values

Hi All

I am trying the below to access the lookup field's value and I get null.
ObjA.fieldA__c =  ObjB.fieldB__r.Name 
where fieldB is a lookup field to object C
Whats wrong here ? 

 
Jigar.LakhaniJigar.Lakhani
Hello,

It looks like the syntax is correct, but how do you assigning that ObjB, can you please share full code ?

Thank & Cheers,
Jigar(pateljb90@gmail.com)