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

Notifications

Announcements

No record found.

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)
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi niubizai,

    There must be something which is correct in the console application but wrong in the plugin. I would recommend you debug the plug-in. Few links:

    1. Tutorial: Debug a plug-in (Microsoft Dataverse) - Power Apps | Microsoft Learn
    2. (5) PL-400 Exam Prep: Debugging a Microsoft Dataverse Plug-in using Trace Logging - YouTube
  • niubizai Profile Picture
    5 on at

    pastedimage1668143377762v1.pngpastedimage1668143702420v1.png

    i have debugged  also same error i get ,previously i pretty sure is same code same step i register the plugin its work just suddenly i get this error since Wednesday  

    but when i remove the httpwebrespone code line its able call the plugin but with it i keep same error 

    beside this plugin alr run almost 1 week ago not any issue .

    kindly given more assit 

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi niubizai,

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

  • niubizai Profile Picture
    5 on at

    pastedimage1668144995221v1.png

    which product shoulkd i choose?

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi niubizai,

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

  • niubizai Profile Picture
    5 on at

    ok thanks will have update once have solution also

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi niubizai,

    Okay. You are welcome.

  • Suggested answer
    furkank Profile Picture
    535 on at

    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
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Can you try using httpclient instead of webrequest..

    github.com/.../HttpClientPlugin.cs

  • niubizai Profile Picture
    5 on at

    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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans