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

Query in Dev Env

(1) ShareShare
ReportReport
Posted on by 29

Good afternoon colleagues

I have 2 questions:

I have made Query in the Dev Environment which i use to output to excel

It has the following columns among others:

Purchase Order Document Number ( from table 38 PO Header)

Purchaser Code (also from table 38)

Expected Arrival Date ( also table 38)

Now I would like to add a column in which the item numbers (from table 39) for that PO will be concatenated

Each PO has only one or two items

Purchaser_Code Document_No Item No
LH IP-211274 10903, 20298

First question: Can anyone advise how to do this textjoin?

Second question: How do i order the report by the Expected Receipt Date?

Thank you in advance,

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    98,311 Super User 2026 Season 1 on at

    Hi, hope the following can give you some hints.

    Walkthrough: Creating a Query to Link Three Tables
    https://learn.microsoft.com/en-us/dynamics-nav/walkthrough--creating-a-query-to-link-three-tables

    https://learn.microsoft.com/en-us/dynamics-nav/sql-advanced-options-for-data-item-link-types

    How to: Sort a Query Dataset in Ascending or Descending Order
    https://learn.microsoft.com/en-us/dynamics-nav/how-to--sort-a-query-dataset-in-ascending-or-descending-order

    Thanks.

    ZHU

  • Lovisa LH Profile Picture
    29 on at

    Dear Zhu

    Thank you for the reply. I succeeded in sorting the dataset.

    I have also joined the two tables. 

    I read the articles you recommended about joining, but this is not what I am looking for, and i am not sure of the correct terminology in NAV

    I have output the data from the Purchase Order Header, ie the purchase order numbers, and now I would like to concatenate the item numbers on Purchase Lines on that Purchase Order as a column in the row. 

    Is this possible in NAV?

    Textjoin.jpg

  • Suggested answer
    YUN ZHU Profile Picture
    98,311 Super User 2026 Season 1 on at

    Hi, unfortunately, as far as I know, it is not possible to do what you have in your screenshot using Query.

    But using page should work, but it requires more development. You can create a temporary table and insert data when the page is opened.

    Hope this can give you some hints.

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,986 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,071 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 975 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans