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

Setting Filters on a Report Request Card

(0) ShareShare
ReportReport
Posted on by 54
Hello,
 
I'm trying to implement some custom code for Batch Draft Invoice previewing.
 
Currently, we're looping through the selected Sales Invoices and then calling DocumentPrint.PrintSalesHeader(Rec)
 
This works OK, but I'd like to remove some of the filters so that the previewer shows all invoices in the selected range. 
 
If I manually remove the Bill To Customer and the Invoice No. I get the correct behaviour. How can I remove these programatically?
 
////////
 
 
Any assistance would be very helpful.
 
Kind Regards,
D
 
 
 
 
I have the same question (0)
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    2,998 on at
    Hii Every One,
     
    As per the Requirement you need to remove all the filter and need your custom filters only.
    For that you need to put the following code as per below example.
     
    DataItemTableView = sorting("Key Of DataItem"); RequestFilterFields = "Document Type";
     
    where you can write the Required Filter Fields as per your requirement.
     
    Thank You,
    Kamal Khakhkhar
  • Community member Profile Picture
    54 on at
    Does that mean I have to extend the request page to control the filters? Is there not a way of setting those when calling?
  • Suggested answer
    YUN ZHU Profile Picture
    99,544 Super User 2026 Season 1 on at
    Hi, hope the following can give you some hints.
    Dynamics 365 Business Central: Can we change default options/filters on the request page of Report???: https://yzhums.com/40072/
     
    Thanks.
    ZHU
  • ManishS Profile Picture
    86 on at
    The Draft invoice is mapped to be printed from sales invoice page only, if you look into the AL, there is no UsageCategory defined, if it would have been then you might get blank filters.
     
    Why this has been set ,if for accidently printing a bunch of invoice into the printer.
    As these are table filter and not on a request page filters, seems you cannot remove it 
     
    You can try to copy the report & its layout and create your own report with UsageCategory= ReportsAndAnalysis. 
     

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,933 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,055 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 640 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans