Updates a table record.

Available for

Model-driven apps


context.webAPI.updateRecord(entityLogicalName, id, data).then(successCallback, errorCallback);


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 key: value pairs, where key is the property of the table and value is the value of the property you want to update.

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:

  • entityType: String. The table type of the updated record.
  • id: String. GUID of the updated record.
errorCallback Function No A function to call when the operation fails. An object with the following properties will be passed:
  • errorCode: Number. The error code.
  • message: String. An error message describing the issue.

Return Value

Type: Promise<Entityreference>

Description: On success, returns a promise object containing the columns specified earlier in the description of the successCallback parameter.

Power Apps component framework API reference
Power Apps component framework overview


Can you tell us about your documentation language preferences? Take a short survey.

The survey will take about seven minutes. No personal data is collected (privacy statement).