web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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,236 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
    95,729 Super User 2025 Season 2 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,380 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans