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...
Suggested Answer

Consume a specific procedure from a codeunit published as a web service

(0) ShareShare
ReportReport
Posted on by 131

Good morning community, first of all, thank you very much for taking the time to read my question.

I explain what I have tried to do, I have built the following code unit and I have published it as a web service in Business central

pastedimage1646256571489v1.png

pastedimage1646256614669v2.png

In the SOAP url it takes me to the following screen

pastedimage1646256709312v3.png

What I'm trying to do in Postman is to consume that code unit and its procedure called "FindItem" which only expects an item code and the procedure tells me if that product exists or not


But I can't create the query in Postman to receive the response of that specific procedure

What I currently have in Postman is the following

pastedimage1646256958960v4.png

It would really help me a lot if you shared a way to consume that procedure in Postman

Again thank you very much for your time and knowledge.

Good day

I have the same question (0)
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at

    If you want to call a specific procedure in the codeunit, you need to call the procedure in the URL.

    DataYss_FindItem

    Also make sure you send the parameter using json in the body.

    {

       "ItemNo": "TEST"

    }

  • Yael Suarez Profile Picture
    131 on at

    Thanks for your time

    Look try to do it this way by modifying the url and in the Body put the following but when sending as a response I get a blank line

    In this case, it should return a True since that Item Code that I place if it exists in the database

    pastedimage1646259406939v1.png


    Thank you again for taking the time to reply.

  • Suggested answer
    JAngle Profile Picture
    133 on at

    I think it needs to be a POST request. I did a blog on something similar: joshanglesea.wordpress.com/.../

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

    Recommended (and more future proof) way is to use OData bound actions:

    demiliani.com/.../

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 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans