updateRecord
Updates a table record.
Available for
Model-driven apps & portals.
Syntax
context.webAPI.updateRecord(entityLogicalName, id, data).then(successCallback, errorCallback);
Parameters
Name | Type | Required | Description |
---|---|---|---|
entityLogicalName | String | Yes | The table logical name of the record you want to update. For example: "account". |
id | String | Yes | GUID of the table record you want to update. |
data | Object | Yes | A JSON object containing |
successCallback | Function | No | A function to call when a record is updated. An object with the following properties will be passed to identify the updated record:
|
errorCallback | Function | No | A function to call when the operation fails. An object with the following properties will be passed:
|
Return Value
Type: LookupValue[]
Related articles
Web API
Power Apps component framework API reference
Power Apps component framework overview