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...
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.

I have the same question (0)
  • Suggested answer
    divyeshchitte Profile Picture
    968 on at
    RE: Reports with at least two linked tables

    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

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

#2
YUN ZHU Profile Picture

YUN ZHU 2,012 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans