child relationship in UI-Field

  • 1
  • Question
  • Updated 3 years ago
How would I place a child relationship field in a UI-Field if the name of the child relationship in the model is: {{Engagement_Roll__r.Roll__c}}
Photo of Bill Fox

Bill Fox

  • 7,984 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,026 Points 20k badge 2x thumb
Global merge syntax can go through the child relationships and get data down there.   Here is an example: 

{{$Model.Account.data.0.Contacts.records.0.CreatedDate}}

Let me break that down: 
  • Go to the Account model. 
  • Get the first row of data
  • Get the Contacts child relationship - and look for its records
  • Get the first row of data from within the child relationship records
  • Get the Created Date field...
Photo of Bill Fox

Bill Fox

  • 7,984 Points 5k badge 2x thumb
Here what I am trying to accomplish.  I would like to show in a reference field look up a UI_Field Long Text Area using the following.  It looks like UI-field does not support "Long Text Area?