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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How do you locate a PO in the SQL, what is the queries to check?

(0) ShareShare
ReportReport
Posted on by 4,971

Hi Community,

I would like to locate PO in SQL and i wonder if you can help me to understand what are the SQL query I should be inputing.

Thank you!

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: How do you locate a PO in the SQL, what is the queries to check?

    Hi,

    You can use below

    SELECT *

     FROM YourTablenamehere

     where [Document Type] = 1;

  • joshtechsolutions Profile Picture
    4,971 on at
    RE: How do you locate a PO in the SQL, what is the queries to check?

    Thanks Nitin, what if I only wants to select one  purchase Order?

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: How do you locate a PO in the SQL, what is the queries to check?

    Hi,

    You can add one more filter with No.

    SELECT *

    FROM [Document No_]

    where [Document Type] = 1 and [No_] ='YourPONohere'

  • Suggested answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at
    RE: How do you locate a PO in the SQL, what is the queries to check?

    Hi, just to add a useful info

    https://www.w3schools.com/sql/sql_where.asp

    Hope this helps as well.

    Thanks.

    ZHU

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 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans