Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

How to pass SuppressDuplicateDetection value in Httpclient header c#

(0) ShareShare
ReportReport
Posted on by 15

Hi all,

I am trying to qualify lead using CRM Web api

I need to pass MSCRM.SuppressDuplicateDetection value as bool in header but unable to pass in c#

Itried by this way

_httpClient.DefaultRequestHeaders.Add("SuppressDuplicateDetection", true);

I tried by this way also

_httpClient.DefaultRequestHeaders.Add("SuppressDuplicateDetection", true.ToString());

This is response when i am calling with above method

error":{"code":"0x8006088a","message":"MSCRM.SuppressDuplicateDetection parameter should be a boolean"}

Issue is how do i pass boolean value

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: How to pass SuppressDuplicateDetection value in Httpclient header c#

    Hi,

    Check microsoft doc article on how to set this property in header correctly.

    docs.microsoft.com/.../manage-duplicate-detection-create-update

    Please Mark My Answer Verified If I Were Helpful

  • Wahaj Rashid Profile Picture
    Wahaj Rashid 11,319 on at
    RE: How to pass SuppressDuplicateDetection value in Httpclient header c#

    Hi,

    Can you try this:

    _httpClient.DefaultRequestHeaders.Add(""MSCRM.SuppressDuplicateDetection", "true");

    And what happens, when you use:

    _httpClient.DefaultRequestHeaders.Add("SuppressDuplicateDetection", true);

    Can you share the error in above case?

    Best,

    Wahaj

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans