I am trying to display Contact details on a Lightning Data Service component on the Case Level. An example SOQL query that is working is
Select ContactId, Contact.FirstName, Contact.LastName from case
However, I cannot display the Contact.FirstName or anything other than ContactId.
I've tried some of the solutions base in this question here Attributes and Field clarification from Lightning data service trailhead module but dont have a working solution.
My code is working in terms of loading everything correctly for the Case object just not the lookup relationship to Contact
<force:recordData aura:id="record"
recordId="XXXXXXXXHardCodedIDxxxxxx"
targetError="{!v.recordError}"
targetRecord="{!v.record}"
targetFields="{!v.caseRecord}"
fields="ContactId,Contact.LastName"
recordUpdated="{!c.handleRecordUpdated}"
mode="VIEW"/>
Also I realize there is a field that is ContactName which works, but I need to be able to get alot of fields off of the Contact object that aren't listed.
Any ideas to get those fields displaying would be great.