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

How to autofill Item n° after launch the report + save local

(0) ShareShare
ReportReport
Posted on by 20

Hi everyone,

I have created an action on my card page that lauch the report

No problem...

But i try to autofill the field "code article" with the value from the main card page...

And i dont see how to do it...

pastedimage1683582306429v1.png

My code in my main page

        // Add the action called "TDS PRINT" to the action menu
        area(Processing)
        {
            action("TDS PRINT")
            {
                Promoted = true;
                PromotedCategory = Process;
                ApplicationArea = All;
                Image = Print;
                RunObject = report TDS;
            }
        }

And the code on report page

report 95120 TDS
{
    DefaultRenderingLayout = "TDS-SO-FR";
    dataset
    {
        dataitem(TDS; TDS)
        {
            RequestFilterFields = "Code article";
            column(Acidite; Acidite)
            {
            }
            column(Bio; Bio)
    ...

Also, is it possible to add a second action ( next to "TDS print" action ) to save locally the report in pdf but with a custom filename ?

Thanks in advance for your help.

  • Verified answer
    YUN ZHU Profile Picture
    103,085 Super User 2026 Season 2 on at

    Hi, Please try the following.
    Report.Run() Method: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/report/report-run-method

    pastedimage1683592150760v1.png

    pastedimage1683592162126v2.png

    pastedimage1683592171935v3.png

    Hope this helps.

    Thanks.

    ZHU

  • Neodep Profile Picture
    20 on at

    Thanks Zhu, and on your website i also find how to do with my multiple layout choice before print

    https://yzhums.com/25943/

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 July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 715 Super User 2026 Season 2

#2
AndrewThomas81 Profile Picture

AndrewThomas81 390 Super User 2026 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 386 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans