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...
Answered

Create a Custom Web Service via Web Service/API

(0) ShareShare
ReportReport
Posted on by

Hello, everyone.

I'm currently developing an extension for MS Business Central, a Connect Apps. To achieve what I want, my application needs to be able to fetch some data I could not find in the default APIs like: Vendor Bank Information, Payment Journals, and a custom code unit.
The problem is that to ship to users that have different tenants, they will have to configure this web services by themselves. I was wondering and then I looked around for a way to create this APIs/Web Services via API/Web Services after the user grant me access via OAuth. The problem is that I could not find anything related to that.

Does anyone know of a way to achieve this? Or have any suggestion on where to look into.


Thanks,

Fabiano

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

    You can create these web services directly when installing your extension.

    Please refer to this post (second way described is the better):

    demiliani.com/.../

  • Community Member Profile Picture
    on at

    Hello, Stefano.

    Thanks for answering.

    In a case where I'm only using the webservices and I don't have an intention to create an extension, I guess it is not possible, right?

    Best,

    Fabiano

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

    Sorry but you wrote “I'm currently developing an extension for MS Business Central, a Connect Apps.”.

    Inside your extension’s project you can create a web service definition (as described in my blog post in the link above) and in this way when you install the extension you’re developing the ws will be automatically published.

  • Community Member Profile Picture
    on at

    Ok, thanks.

    The concepts behind a lot of things in MS Business Central are still not so clear in my mind. Just bought your book to dive a little deeper.

    Thanks for the answers, by the way.

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,229

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans