D365: The webhook call failed because the http request received non-success httpStatus code

Recently, while trying to invoke webhook using custom global action we got an error saying “The webhook call failed because the http request received non-success httpStatus code. Please check your webhook request handler.”

We were using JS to call a custom global action which was used to invoke webhook which in turn was used to execute azure durable function.

After spending some time on the issue, we found that there was no issue with the action, the JS or the webhook. Rather it was the issue at the azure durable function side.

We were not reading the parameters passed to azure durable function properly for which it was throwing exception and was unable to process the request.

Fixing the azure durable function code to read the parameters properly fixed the issue.

Hope it helps !!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.