PL-400 · Question #340
You are developing a Power Platform solution. The solution connects to a third-party accounting system by using a Web API through a Power Apps app that automatically exchanges contacts with the sales
The correct answer is A. Prefer: odata.track-changes. To synchronize only new or changed data from a third-party accounting system via a Web API, the Prefer: odata.track-changes header should be included in the API request.
Question
Exhibit
Options
- APrefer: odata.track-changes
- BPrefer: odata.allow-entityreferences
- CPrefer: odata.include-annotations
How the community answered
(38 responses)- A84% (32)
- B5% (2)
- C11% (4)
Why each option
To synchronize only new or changed data from a third-party accounting system via a Web API, the `Prefer: odata.track-changes` header should be included in the API request.
The `odata.track-changes` preference header, when used with OData Web API requests, enables the delta query functionality, allowing the client to retrieve only the changes (creations, updates, and deletions) that have occurred since the last request. This ensures that only unsynchronized data is exchanged, optimizing data transfer.
The `odata.allow-entityreferences` header is used to allow entity references in a request body, typically for creating relationships between entities, not for tracking data changes.
The `odata.include-annotations` header is used to request that specific annotations, such as formatted values or lookup property names, be included in the response, not for managing data synchronization of changes.
Concept tested: OData Delta Query for data synchronization
Source: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/track-changes-using-delta-query
Community Discussion
No community discussion yet for this question.
