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.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 570 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 390 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 220 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans