Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. AB-400/
  4. AB-400 Learning Path/
  5. Study FAQs/
  6. How do I use an alternate key and Upsert to synchronize Dataverse rows safely?

Study FAQ

How do I use an alternate key and Upsert to synchronize Dataverse rows safely?

Exam · AB-400Knowledge domain · Develop integrations (10–15%)Updated Nov 25, 2026
Also asked as 2
  • How should a Dataverse integration identify and update projection rows with Upsert?
  • How can I reapply a Dataverse sync write with the same alternate key and preserve locally owned fields?

Answer

On a standard Dataverse destination table, use an active alternate key derived from the source's stable identity and send only the field values that the source owns. In the .NET SDK, put the identifying values in Entity.KeyAttributes, put the write payload in Entity.Attributes, and send an UpsertRequest through IOrganizationService.Execute. In the Web API, put the key in the PATCH resource URL and the owned values in the body. Define Dataverse alternate keys · Upsert with SDK and Web API

A source-environment tag plus source row GUID can identify a projection across renames. Check that the unique index is Active and that the chosen values work with the Web API's alternate-key character restrictions if using HTTP. Treat changes in identity derivation as a migration. For a standard table, the SDK's RecordCreated tells you which outcome occurred, and Target identifies the row. If a response is lost, recover or reapply using the same key. Exclude locally owned fields and define how a source null is mapped. Alternate key index and constraints · Standard-table Upsert processing

An elastic-table Upsert can replace the existing row data and does not raise the standard Create or Update messages. Review its mapping and logic separately. On any destination, repeated requests may still produce duplicate automation effects, even when row identity prevents duplicate records. Test create, rename and replay under the same logical key, then confirm local fields and related effects. Elastic-table Upsert behavior

Full explanation

AB-400: Synchronizing Dataverse with Change Tracking and Upsert

Study guide · AB-400

Read the full explanation →
← Back to AB-400 FAQsView learning path →

Related questions

What proves a governed Power Platform request integration handles replay and uncertain results? →How do I checkpoint paged Dataverse change tracking without skipping updates? →How do I handle deletions and expired tokens in a Dataverse synchronization? →How do I match a Power Platform custom connector's authentication to the API it calls? →How do I test a Power Platform custom connector from its backend through the consuming app or flow? →How do I transform a custom connector response without masking an API failure? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.