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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Report Extensions, use Base Report Global Variables

(0) ShareShare
ReportReport
Posted on by 666

Good-day,

In base Report 790 "Calculate Inventory", we have a field,  field(DocumentNo; NextDocNo)
where NextDocNo is part of the global Variables. 

I want to populate NextDocNo from the report Extension but at the moment the Report Extension does not Recognize the Global variable and there is no EventSubscriber that hase NextDocNo as a parameter.

Is there another way to access the global variables for the report in the report extension?

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    I believe you want to change the document no or use your own document no. , in that case, you can subscribe to the event OnBeforeInsertItemJnlLine in that report and adjust the Document No. on the Item Journal Line you don't need access to the NextDocNo to update it.

  • Suggested answer
    PG-27080824-0 Profile Picture
    2 on at

    You can make use of the protected property for variables....if MS would bother of give those var the property

    docs.microsoft.com/.../devenv-protected-variables

    Join the community in the plea for more protected vars in standard reports:

    github.com/.../issues

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May 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,474 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 864 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 851 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans