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

Reports with at least two linked tables

(0) ShareShare
ReportReport
Posted on by 5

I have a problem to write my first report from "invoice sales" and obtain the "invoice sales lines", Do you know some link with examples of that or documentation of linking two tables in a report?, I write code en AL for BCS365 in Visual Studio Code. Thank you in advance.

  • Suggested answer
    divyeshchitte Profile Picture
    970 on at

    You can try this data link.

    dataitem("Sales Invoice Line"; "Sales Invoice Line")

                       {

                           DataItemLink = "Document No." = FIELD("No.");

                           DataItemLinkReference = "Sales Invoice Header";

                           DataItemTableView = SORTING("Document No.", "Line No.");

    You can also refer to default report 206 for the same.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 755 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 413 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 387 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans