QuestionQ7

Extend the platform

You develop code that will update existing records in a table.

The update must be performed by using the alternate key configured for the table.

You need to carry out the update.

Which two requests should you use? Each correct answer provides a complete solution.

> NOTE: Each correct selection is worth one point.

Choose two
  • A UpdateRequest
  • B UpsertRequest
  • C CreateRequest
  • D RetrieveRequest
Explanation

Microsoft Dataverse alternate keys can identify a table record through an Entity object's KeyAttributes rather than its primary GUID. UpdateRequest updates the existing record identified this way. UpsertRequest also locates a record by its alternate key and updates it when it exists; it creates a record only when no matching record exists.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!