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...
Suggested Answer

Report Extensions, use Base Report Global Variables

(0) ShareShare
ReportReport
Posted on by 629

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,243 Super User 2025 Season 2 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

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,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans