retrieveRecord
Retrieves a table record.
Available for
Model-driven apps & portals.
Syntax
context.webAPI.retrieveRecord(entityLogicalName, id, options).then(successCallback, errorCallback);
Parameters
Name | Type | Required | Description |
---|---|---|---|
entityLogicalName | String | Yes | The table logical name of the record you want to retrieve. For example: "account". |
id | String | Yes | GUID of the table record you want to retrieve. |
options | String | No | OData system query options, $select and $expand, to retrieve your data.
You specify the query options starting with ?$select=name&$expand=primarycontactid($select=contactid,fullname)
|
successCallback | Function | No | A function to call when a record is retrieved. A JSON object with the retrieved properties and values will be passed to the function. |
errorCallback | Function | No | A function to call when the operation fails. |
Return Value
Related articles
Web API
Power Apps component framework API reference
Power Apps component framework overview