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

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

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 1,742

#2
YUN ZHU Profile Picture

YUN ZHU 844 Super User 2025 Season 2

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 719 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans