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...
Answered

Find Purchase Order created via REST API

(0) ShareShare
ReportReport
Posted on by 115

hi,

I have created some purchase orders via REST API (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_create). While I can see them when I use the REST API, I cannot find them using the browser interface (https://businesscentral.dynamics.com/)
Am I missing anything?

many thanks,

JG

I have the same question (0)
  • JAngle Profile Picture
    133 on at

    Are you accessing the correct company within the database?

  • Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    Are you sure you have assigned the correct document type?  The place then show up in the web client can variate with what document type you have assigned to the document. If you provide us with the statement you used we should be able to figure it iout.

  • Javier Profile Picture
    115 on at

    hi,

    thx for the answer... I think i am... I got the company id using the REST call

    api.businesscentral.dynamics.com/.../companies

    with the appropiate OAuth2 credentials...

    I use the id corresponding to the "CRONOS" company, which is the one I see as well in the browser UI.

  • Javier Profile Picture
    115 on at

    what do you mean with "assign the correct document type"? To create the PO I use the REST call

    POST -> api.businesscentral.dynamics.com/.../purchaseOrders

    after that, with the returned PO id, I add a purchase order line to it...

    when using the REST call to get back the list of POs, I can see both the ones I create via REST API and those ones I create using the browser UI. From the data structure, I can see no difference between them

  • Verified answer
    Javier Profile Picture
    115 on at

    ok, while answering your question I came up to the problem... in my API calls I have been using the "sandbox" environment... in the browser UI the environment being used is the "production" one... once I switched this, all works as expected.

    many thanks!

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,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans