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

Error when passing parameters to report URL in business central

(0) ShareShare
ReportReport
Posted on by 105

I have a custom report involving 3 dataitems in 1 dataset, the main dataitem is the "Customer" table and the only filter on the report is "No." as you can see below

report 50105 CustomerHistory
{
    Caption = 'Customer Sales History';
    UsageCategory = Administration;
    ApplicationArea = All;
    RDLCLayout = 'CustomerHistoryRpt.rdlc';
    WordLayout = 'CustomerHistoryRpt.docx';

    dataset
    {
        dataitem(Customer; Customer)
        {
            RequestFilterFields = "No.";
            column(CustomerNumber; "No.") { }
            column(Name; Name) { }
            column(Balance; "Balance (LCY)") { }
            column(E_Mail; "E-Mail") { }
            column(Phone_No_; "Phone No.") { }
        }

The report runs fine when I use the URL with report id:

https://businesscentral.dynamics.com/.../?report=50105

but I cannot pass a customer No. in the URL I am always getting "the filter string contains invalid parameters"

I followed the below link for examples:

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-web-client-urls

I tried the below combinations and none of them works:

https://businesscentral.dynamics.com/.../?report=50105&filter='No.' IS '1452'

https://businesscentral.dynamics.com/.../?report=50105&filter='Customer.No.' IS '1452'

https://businesscentral.dynamics.com/.../?report=50105&filter='CustomerNumber' IS '1452'

https://businesscentral.dynamics.com/.../?report=50105&filter='Customer.CustomerNumber' IS '1452'

https://businesscentral.dynamics.com/.../?report=50105&filter='No.' : '1452'

Thank you

I have the same question (0)
  • Suggested answer
    Robert B. Profile Picture
    257 on at

    Could you post the whole string please?

    As far as I could tell, in your first test, I am assuming the company should sit in front of report (currently marked ...), in which case the ? sign shouldn't be before report, but a & sign.

    All the best,

    Robert  

    Please verify my answer, if you find it useful, that way others can find this solution easier!

  • Najib Saad Profile Picture
    105 on at
  • Verified answer
    Robert B. Profile Picture
    257 on at

    Hi Najib,

     I wonder if this is supported in BC.

     Check this out, I believe the limitation was inherited from NAV:

    [View:https://docs.microsoft.com/en-us/dynamics-nav/feature-limitations-of-the-microsoft-dynamics-nav-web-client:750:50] look for:

    "Filter strings in a report URL Not supported. Unlike pages, you cannot filter a report by adding filter strings to the Internet address."

    You could always do a workaround:

    1. Build a list page on top of the virtual Integer table which you filter for Number field with the No. you wanted.

    2. Then add a button to run the report and pass the parameter of the current number to a report function which will pre-filter the report when it runs with the same Integer number.

    Cheers,

    Robert

    Please verify the answer once you managed to get it working.

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

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,059 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 994 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 664 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans