Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to properly configure a webhook via the Plugin Registration Tool ?

(0) ShareShare
ReportReport
Posted on by 2,541

Hello everyone,

I was trying to send data to an Azure function via the webhook configured in the PluginRegistrationTool.
The link to my webhook is : https://siteurl.azurewebsites.net/api/Function1?code=CUMlwLUSfb3LuZmHKANDcq454EsbWEHh0VW5dZa1jEbCNV8gHD/aA=

According to the documentation : https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/use-webhooks#register-a-webhook if i undestood properly it : 

* in the Endpoint url it should be : https://siteurl.azurewebsites.net/api/Function1 

* and the webhookkey should be : CUMlwLUSfb3LuZmHKANDcq454Esb0WEHhVW5dZa1jEbCNV8gHD/aA= 

Then i create a simple step for example  update on account, i get the following plugin error :

"Endpoint unavailable

Microsoft Dynamics 365 can’t complete your request. The webhook service endpoint may be configured incorrectly or is not available. Contact the service endpoint owner or your system administrator to validate your configuration. If the problem persists, contact Microsoft Dynamics 365 customer support for help. If you contact support, please provide the technical details."

"The webhook call failed because the http request received non-success httpStatus code. Please check your webhook request handler."

Anyone can point out my issue here ?

Using the same url in postman works perfectly so the link is valid.

Thanks a lot,

Clément


EDIT : actually the error is poping up but the content of my record is really sent to my azure function ...
Why ?!

*This post is locked for comments

  • Suggested answer
    mscrm Profile Picture
    mscrm 45 on at
    RE: How to properly configure a webhook via the Plugin Registration Tool ?

    Hello Clement,

    i have same problem but my service hosted on local server and i called it through server external IP and during calling service through browser i got this error "The webhook call failed during http post".

    what should i do?

  • Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: How to properly configure a webhook via the Plugin Registration Tool ?

    Clement,

    I am following this same route of Plugins+WebHooks (for all my external calls).

    I am just curious as to how you monitor or debug these server-less pieces of code.

    I understand that there is the monitoring and App Insights and the logs there.

    And that Azure functions are reliable as well. But is there anything extra you do for your WebHook calls?

    Like, maybe create a blob and store the output there. (seems like overkill!)

    Just asking what might be a good way here.

    All suggestions welcome!

    Cheers!

  • Verified answer
    Clem Profile Picture
    Clem 2,541 on at
    RE: How to properly configure a webhook via the Plugin Registration Tool ?

    For the record, find out the issue here .

    It was on the azure function side, actually, when a webhook is called via a plugin, it's waiting for a HttpStatusCode response.

    In my case, this was not happening because i quickly tried something in my Azure Function and this was crashing.

    So : don't forget to return a HttpStatusCode  !

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans