Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

How to Set an "In List" Menu Filter Value Using the SOAP API (2 Comments)

$
0
0

Topic by Mike Waldron

Content

Here's something I figured out that I thought I'd share with the community.

I have a filter on a report that's "incidents.disp_hierarchy in list" that I was having difficulty setting a value for in my SOAP client. It's "filter3" in the code block below that causes the problem: when it was excluded, everything was fine; when it was included, I was getting the exception

System.ServiceModel.FaultException`1 was unhandled
Message=Cannot run AnalyticsReport: T&SItemAPITest(ID=104586): REPORT_ERROR_VIEWS_ENGINE

After flailing around for a while, I found the following note in the documentation (How Do I ... ? > Working With Reports > Working With Report Filters): When identifying Menu items, do so by ID instead of by name.

Ah-hah. Changing filter3 values as follows:

filter3.Values = new String[] { "220", "221", "222" };

fixed the problem. I was assuming I could use a lookup name for this, but in this case that didn't work.

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles