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

Report Extension to add a column

(0) ShareShare
ReportReport
Posted on by 7
Hi all,
 
I added a column (Company Phone No. from the Company Information table) to my Check (Stub/Sutb/Check) report.
My AL code contains no errors, and it successfully published to my BC sandbox environment.
However, when I export my modified check stub and try to add my column, First(CompanyPhoneNo) from Datasets to my report layout, I do not receive any values for the company phone number.
Could you help me correct my AL code?
 
reportExtension 70000020 /Check (Stub/Stub/Check) Ext/ extends /Check (Stub/Stub/Check)/
{
 
    dataset
    {
        add(PrintCheck)
        {
            column(CompanyPhoneNo; companyInfo./Phone No./)
            {
 
            }
        }
    }
 
    var
        companyInfo: Record /Company Information/;
 
}
 
 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    Hi, you declared a new variable but did not get its value. Sorry I didn't test it in detail, but please try the following.
     
    Thanks.
    ZHU
  • Hanna1004 Profile Picture
    7 on at
    Hey "YUN ZHU"
    I already tested your AL code, and it won't work to resolve my issue.
    Do you have another suggested answer?

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