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

I have the same question (0)
  • Verified answer
    Clem Profile Picture
    2,541 on at

    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  !

  • Shidin Haridas Profile Picture
    3,499 on at

    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!

  • Suggested answer
    mscrm Profile Picture
    45 on at

    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?

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans