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

Add column to salesline dataitem; not displaying description 2 value on report

(0) ShareShare
ReportReport
Posted on by 65

Screenshot-2022_2D00_10_2D00_19-173620.png

Screenshot-2022_2D00_10_2D00_19-173642.png

See above. I am customizing the sales quote report via reportextensions, and when producing the report, the data in the description 2 column is still not populating on the report. There is data in the field on the document, and I've used the syntax above before for multiple other fields on other reports, but I can't see what the issue here is. 

I have set the variable, and have referenced the variable with the description 2 field for the column, and as far as I know the correct dataitem to set it on is the SalesLine data item. I have also tried creating a variable and writing some logic to have the column be the variable, but that did not work either. 

Any ideas would be appreciated. 

Thanks. 

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    94,176 Super User 2025 Season 2 on at
    RE: Add column to salesline dataitem; not displaying description 2 value on report

    Hi, Why use variables? If it is a temporary variable, it is empty by default and needs to be assigned to it in the trigger.

    I think you can add Description 2 directly using the method below.

    pastedimage1666226310759v1.png

    Hope this helps.
    Thanks.

    ZHU

  • AGV Profile Picture
    65 on at
    RE: Add column to salesline dataitem; not displaying description 2 value on report

    Hey Yun,

    It is actually the Sales Quote NA report I'm adding a reportextension to. See below:

    Screenshot-2022_2D00_10_2D00_20-015334.png

     

    I tried this originally, and the description 2 values from the sales line were not populating on the report, which is why I went the route I did on the first post. On my first post is how the Microsoft's sourcecode is written. You can see when looking at the report's sourcecode. I have tried using the variable way without adding the temporary value to variable as well, with no success.

    Any other ideas? Let me know, or let me know if you find success with when trying a reportextension on the Sales Quote NA report. 

  • Verified answer
    AGV Profile Picture
    65 on at
    RE: Add column to salesline dataitem; not displaying description 2 value on report

    Screenshot-2022_2D00_10_2D00_20-021310.png

    Above code is the correct solution. Values are populating on report. To clarify, the add(SalesLine) is the SalesLine dataitem on the report which is tied to the integer table, and the "Sales Line" value in the column is referencing the "Sales Line' dataitem, which is tied to the Sales line table, on the report. 

    Hope this clarifies. 

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,553

#2
Sumit Singh Profile Picture

Sumit Singh 2,057

#3
YUN ZHU Profile Picture

YUN ZHU 1,915 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans