在Business Central中将参数传递给报告URL时出错

时间:2019-10-28 09:24:07

标签: report microsoft-dynamics dynamics-business-central

我有一个自定义报告,其中包含1个数据集中的3个数据项,主要数据项是“客户”表,报告上唯一的过滤器是“否”。如下所示

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.") { }
        }

当我使用带有报告ID的URL时,报告运行良好:

https://businesscentral.dynamics.com/<tenant id>/?report=50105

但是我无法在URL中传递客户编号,我总是得到“过滤器字符串包含无效参数”

我点击了以下链接以获取示例:

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

我尝试了以下组合,但都不起作用:

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27No.%27%20IS%20%271452%27

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27Customer.No.%27%20IS%20%271452%27

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27CustomerNumber%27%20IS%20%271452%27

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27Customer.CustomerNumber%27%20IS%20%271452%27

https://businesscentral.dynamics.com/<tenant id>/?report=50105&filter=%27No.%27%20:%20%271452%27

1 个答案:

答案 0 :(得分:0)

我发现类似于NAV,在卑诗省仍不支持此功能:

https://docs.microsoft.com/en-us/dynamics-nav/feature-limitations-of-the-microsoft-dynamics-nav-web-client#Report

我要做的解决方法是创建一个包含列表部分的自定义页面,然后通过URL访问该页面。