Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Get request body for custom webservice API

(0) ShareShare
ReportReport
Posted on by 505

Hi, 
I have created a webservice API and exposed it on Business Central. 
How do I get the Request body to use on Postman?

Thank you in Advance

  • Hein Kruger Profile Picture
    Hein Kruger 505 on at
    RE: Get request body for custom webservice API

    I took the long road.

    I downloaded BC20 Onprem.

    in Users there is a webservice key. I made use of this key and a browser extension called "Wizdler" to retrieve the API bodies. This work for now until Microsoft completely removes OData URL and the User webservice keys.

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 Super User 2024 Season 2 on at
    RE: Get request body for custom webservice API

    Hi, you can use the Get method to get these body in Postman in the first time.

    More details: https://yzhums.com/6117/#toc5

    pastedimage1670391602696v1.png

    pastedimage1670391633664v2.png

    Hope this helps.

    Thanks.

    ZHU

  • Hein Kruger Profile Picture
    Hein Kruger 505 on at
    RE: Get request body for custom webservice API

    Hi Daniele,

    In you example you used this structure in your body to get item information or to create a new item:

    {

    "number": "PostmanItem",

    "displayName":"TryOauth20"

    }

    How did you get this structure? How did you know how to use the structure as the body?

    I'm trying to retrieve my SOAP request body. I can see I have a connection and that the API responds, but I can't get information or Post Information.

  • Verified answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Get request body for custom webservice API

    hi

    look my blog

    danieleincalza.blogspot.com/.../business-central-bye-bye-basic.html

    danieleincalza.blogspot.com/.../oauth20-business-central-app.html

    check my answer if it helped you, thanks

    DAniele

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans