Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

CRM Online Plugin error - The specified domain does not exists or cannot be contacted

Posted on by 5

i have create an plugin to call external web api to get data when update a field in contact entity

before that my plugin was work and able to get data write in to my another entity but start from wed keep prompt this error out

pastedimage1668136408586v2.png_2D00_640x480.png_2D00_640x480.png

i have downloaded the log its Exception Message: The remote server returned an error: (400) Bad Request

but when i run in console app is running smoothly even run the request in postman also returning successfully.

this is my plugin code 

pastedimage1668136680177v3.pngpastedimage1668136730951v4.png

i tried to debug when the code runs to httpwebresponse will get the error  but in my console app is running well 

please someone can give a assit

  • niubizai Profile Picture
    niubizai 5 on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    kindly using httpclient method to make API calls

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    Hi niubizai,

    What is another way? It helps me a lot.

  • niubizai Profile Picture
    niubizai 5 on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    yup i know its just state 400 bad request is quite not crm side error but the true is i was working with postman and crm both so i in postman test case is successful then i just move the request body inside my code and true is CRM self security bugs make the webrequest function become buggy so i have solve the problem using another way while waiting they solove the issue as well

    thank you

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    Hi,

    Can you try using httpclient instead of webrequest..

    github.com/.../HttpClientPlugin.cs

  • Suggested answer
    furkank Profile Picture
    furkank 535 on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    Hi, The error message "The remote server returned an error: (400) Bad Request" is quite clear actually. That means, You are parsing and sending wrong request. Debug your code or use traces to see your final request body. Compare it with working postman request body.

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    Hi niubizai,

    Okay. You are welcome.

  • niubizai Profile Picture
    niubizai 5 on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    ok thanks will have update once have solution also

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    Hi niubizai,

    What about Dynamic 365 Customer Engagement? I think it is the better option.

  • niubizai Profile Picture
    niubizai 5 on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    pastedimage1668144995221v1.png

    which product shoulkd i choose?

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: CRM Online Plugin error - The specified domain does not exists or cannot be contacted

    Hi niubizai,

    Creating a Power Platform Admin Centre support ticket will quickly resolve the issue.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans