ftos.data.loadExtension

Returns an entity extension's virtual attributes for a given entity record.

IMPORTANT!  
Does not work for custom data extensions.

Syntax

Copy
ftos.data.loadExtension(entityName: string, extensionName: string, viewName: string, recordId: string): any
 
Property Type Description
entityName string Name of the entity extension's parent entity.
extentionName string Name of the entity extension.
viewName(optional) string Name of the transient entity's view. To be used with entity extensions linked to transient data entities of type collection.
recordId string Record ID for which the extension's attributes and values are retrieved.

Return Value

Returns an object containing the entity extension's attribute names and their values. E.g.:

Copy
{
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "phone": "+1-555-1234",
  "isActive": true
}

Example