web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Wahaj Rashid Profile Picture
    11,321 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

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator 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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 51 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 46

#3
CU23101130-0 Profile Picture

CU23101130-0 17

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans