Skip to main content
Microsoft Dynamics NAV forum
Suggested answer

Query in Dev Env

editSubscribe (1) ShareShare
Posted on by 167

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,

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 59,978 Super User on at
    RE: Query in Dev Env

    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.



  • Lovisa LH Profile Picture
    Lovisa LH 167 on at
    RE: Query in Dev Env

    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?


  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 59,978 Super User on at

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,066 Super User

Martin Dráb Profile Picture

Martin Dráb 222,585 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans