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...
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
    95,329 Super User 2025 Season 2 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
    95,329 Super User 2025 Season 2 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

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

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans