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

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

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 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
    159 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,172 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 796 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 377 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans