How to Prevent Duplicate Records Using MSCRM.SuppressDuplicateDetection in Dataverse Web API?
Table of Contents
Question
You are using the Microsoft Dataverse Web API to interact with data.
You need to ensure that no duplicated records are created in the Microsoft Dataverse table during update operations.
What should you do?
Select only one answer.
A. Set the value of MSCRM.SuppressDuplicateDetection header to true in the PATCH request.
B. Pass the CalculateMatchCodeSynchronously parameter in the PATCH request.
C. Set the value of MSCRM.SuppressDuplicateDetection header to false in the PATCH request.
D. Include the If-Match: * header in the PATCH request.
Answer
C. Set the value of MSCRM.SuppressDuplicateDetection header to false in the PATCH request.
Explanation
This item tests the candidate’s knowledge of using platform APIs to detect duplicate records.
If you want to detect duplicate records during an update operation, you should set the value of MSCRM.SuppressDuplicateDetection header to false in your PATCH request. If you set the header value to true, this will update the record even if the duplicate is found. Passing the CalculateMatchCodeSynchronously parameter in your PATCH request will not help either, same as including If-Match:* header in the request, because it has a different purpose.
Microsoft Power Platform Developer PL-400 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Power Platform Developer PL-400 exam and earn Microsoft Power Platform Developer PL-400 certification.