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 :
Customer experience | Sales, Customer Insights,...
Suggested answer

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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • niubizai Profile Picture
    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
    12,119 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
    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
    28,981 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
    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
    12,119 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
    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
    12,119 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
    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
    12,119 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

Responsible AI policies

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

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
DAnny3211 Profile Picture

DAnny3211 134

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 115

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans