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

Codeunits as OData Web Service - Where to find methods and parameters?

(0) ShareShare
ReportReport
Posted on by 5

Hi.

I'm integrating our intranet (Running on PHP) with Business Central and for the most part have been successful with CRUD.

But for past few days I've been researching ways to run certain procedures like Posting journals, transfer orders etc.

What I found out is that there is quite a lot of Codeunits available which I should be able to publish as a web service and then use SOAP to run these.

Here comes the problem, I'm unable to find any way to actually know the methods and rewuired parameters inside the codeunits in order to successfully call these. Please not that we dont have a developer license so bound actions and actually looking into codeunits doesn't seem to be an option.

Any help is much appreciated.

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

    When you publish a codeunit as web service, you can see from the "outside" the public methods with their parameters. You cannot  see methods declared as not public (local) on the published codeunit. So:

    procedure XXX: is visible from the outside

    local procedure XXX: not visible

  • Renno K Profile Picture
    5 on at

    Thanks for the reply.

    I get that there are so called public and private methods. But in case of these public methods should their names and parameters with datatypes readable from the WSDL when simply opening SOAP url?

    Let's take for example object 81 Sales-Post (Yes/No). I read that posting methods should be available, but publishing this and opening URL I get no indication on how to actually pass order id for posting.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,870 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,138 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 915 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans