Reference field not in Model's data object?

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Any idea why a reference field that I have in a model's fields list would not show up in its .data object?

The Primary_Staff__c field is here:


But not here:


What's going on here?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
When there is no value in the reference field,  we don't go get the full referred object.  So make sure there is actually a value for 
Primary_Staff__c in that record. 
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
There's not a value, so... there you go! Thanks. :)