web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 607

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
    PG-27080824-0 Profile Picture
    2 on at
    RE: Report Extensions, use Base Report Global Variables

    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

  • Suggested answer
    Suresh Kulla Profile Picture
    49,257 Super User 2025 Season 2 on at
    RE: Report Extensions, use Base Report Global Variables

    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.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,669 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,668

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,203

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans