web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to integrate Postman behaviour into Business Central Code?

(0) ShareShare
ReportReport
Posted on by 10

Hello!

I currently have a connection working with Postman. A new Access Token with OAuth2 has to be generated first before inserting the Json to send a request with POST and receive the right response. 

I would like to replicate/integrate this behaviour in Business Central instead of Postman. How could I do this exactly? 

I tried to read myself into API's but the example from Erik Hougaard didnt work for me, as the IP isnt showing.

How to make a simple API call with a json reply in Business Central - YouTube

I have the same question (0)
  • Suggested answer
    Govinda Kumar Profile Picture
    2,304 Moderator on at

    Hi,

    You can create a custom procedure in your codeunit and then create a web service for that codeunit, you can hit the procedure of your codeunit using postman... here's the simple code unit with procedure..

    pastedimage1682671403900v4.png

    To create the web service, you can search for 'web services'...

    pastedimage1682671483223v5.png

    pastedimage1682670859094v2.png

    pastedimage1682670930511v3.png

    After creating the web service, you can call the procedure called 'Hello' using postman..

    pastedimage1682671649483v6.png

    hope it helps you...

    Regards

  • Suggested answer
    Govinda Kumar Profile Picture
    2,304 Moderator on at

    To hit your codeunit service you have to use base OData URL provided by microsoft..

    pastedimage1682673972147v1.png

    api.businesscentral.dynamics.com/.../MyCodeUnit_Hello

    Hope it helps..
    Regards

  • M.Sub Profile Picture
    10 on at

    Thank you for the answer but I should have clarified that I wanted to establish the connection independent from Postman. Starting the connection works with postman, but the user should be able to send the request by himself with business central and receive the response without using postman.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,165 Moderator on at

    So what you want to do is to call an external API from with in Business Central?

    if that is what you are looking for you have to write AL code and use the http client available in the AL language.

    learn.microsoft.com/.../httpclient-data-type

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans