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 :
Small and medium business | Business Central, N...
Suggested Answer

Webhook subscriptions on OData endpoint?

(0) ShareShare
ReportReport
Posted on by

Hello.

I'm currently trying to integrate with a Microsoft Business Central solution On-Premise (BC14) and want to subscribe webhooks to OData endpoints and not only the REST endpoints.

As an example, I can perfectly fine subscribe to the following endpoint:

navservice.internal:8612/.../items

But I'm unable to subscribe to the following two


        navservice.internal:8612/.../Webshop_Categories
        navservice.internal:8612/.../Webshop_Categories
    

The first response is the following:

{
  "error": {
    "code": "BadRequest_NotFound",
    "message": "Resource not found for the segment 'Company'.  CorrelationId:  e86fbfaa-7553-4413-8664-1f823b2a1d64."
  }
}

The second response is the following:

{
  "error": {
    "code": "BadRequest_NotFound",
    "message": "Resource not found for the segment 'ODataV4'.  CorrelationId:  c86fbfaa-7553-4413-8664-1f823b2a1d62."
  }
}

Shouldn't I be able to subscribe to OData endpoints since the April '19 update?

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Are these pages exposed as API pages? You need to create API pages to have webhooks support.

  • Community Member Profile Picture
    on at

    I've added the page to 'Web services' in BC and I wasn't aware that I was able to expose OData pages as API pages. Is there any documentation as to how this is done?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Here references and a sample:

    docs.microsoft.com/.../devenv-api-pagetype

  • Community Member Profile Picture
    on at

    Hello again.

    That apparently resolved my problem with being able to subscribe to a custom Page endpoint. But now I'm having a similar problem as described here:

    community.dynamics.com/.../webhook-subscription

    The subscription has been made, but changes to the tables referred in the Page of the type API doesn't fire notifications to the URL in the subscription. Do you have any idea why?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    If the subscription is correctly established and you have a valid notification url (from where you will be able to receive the notification) it should work.

    Please check this post:

    demiliani.com/.../

    all is explained here.

  • Community Member Profile Picture
    on at

    Hi again, Stefano.

    Thank you very much for your help so far.

    I've read your article and it seems like I'm doing everything correctly according to your article.

    I'm perfectly able to add the subscription and renew the subscription for the API Page, and I'm receiving HTTP calls on the notification URL for both adding the subscription and renewing the subscription. But I'm not receiving any notifications when adding or changing content to the table inside my Business Central solution.

    I even tried subscribing to Items (a standard API endpoint) and changed a number of fields on that item, but I'm not receiving any HTTP calls for this subscription either. I feel confident that it most be some missing configuration in the on-premise solution?

  • Community Member Profile Picture
    on at

    Hi, 

    have you solve the problem.?

  • Community Member Profile Picture
    on at

    Partially.

    It seems that the CU (CU04 on 2019 Spring release) I'm running has a bug regarding the notifications. Somewhere between CU04 and CU10 this is fixed more or less by accident, according to Microsoft Support. The notifications work from CU10, so my fix has to be to upgrade.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans