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

Data Item link AL

(1) ShareShare
ReportReport
Posted on by 30
Hi 
I am trying to link Contact table with Contact Business Relation table, so I can find the related customer when filtered by contactNo. But I am getting an error "DataitemLink must be set" any ideas on this error please.
My code below
 
dataitem(Contact; "Contact")
        {
 
            column(ContactNo; "No.")
            {
            }



 
            dataitem(ContactBusinessRelations; "Contact Business Relation")
            {
                // Sets a link between FieldY of Table2 and FieldX of Table1.
                DataItemLink = "Contact No." = Contact "Company No.";
                //The dataset contains records from Table1 and Table2 where a match is found between FieldY and FieldX.
                SqlJoinType = InnerJoin;
 
                column(CustNo; "No.")
                {
 
                }
 
            }
 
            filter(Filter_ContactNo; "No.")
            {
 
            }
 
        }
Below is the error I am getting.
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,555 Most Valuable Professional on at
    Hi
    Please review carefully how to use this report property.
    Sell-to Customer No.=FIELD(No.)
     
    BR
    GR
  • YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    Hi, First of all, SqlJoinType cannot be used here.
     
     
    Second, there is something wrong with your writing. Please refer to Microsoft standard documents or objects.
    For example,
     
    Thanks.
    ZHU
     
     
  • Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at
    Hi,
     
    SQL Joins are not allowed to be set on report object.
     
     
    Regards,
    Saurav Dhyani

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans