entity.getEntityReference (Client API reference)
Returns a lookup value that references the record.
Syntax
formContext.data.entity.getEntityReference();
Return Value
Type: Lookup object.
Description: The returned object has following three parameters:
entityType
: String. Logical name of the table record. For example, "account".id
: String. GUID value of the table record.name
: (Optional) String. Name of the table record.