开发者

Find items is SSRS by Id

How do you find items in SSRS by ID? I tried to use the id returned by another find result, a new guid to string and small random string all of which return the same error:

The ID field has a value that is not valid. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidElementException: The ID field has a value that is not valid.

Here is the c开发者_如何学JAVAode:

var request = new FindItemsRequest
        {
            Conditions = new[] { new SearchCondition { Name = "ID", Value = "test"} },
            Folder = "/"
        };
        return _ssrsService
            .FindItems(request)
            .Items

I'm using SSRS 2005.


Pretty sure this can't be done through the SSRS service. Ended up finding all objects then using LINQ to filter down to the ID I need.


The MS documentation on the FindItems method says:

Applications that use FindItems typically accept user input for specific properties and property values. The searchable properties are Name, Description, CreatedBy, CreationDate, ModifiedBy, and ModifiedDate. The items that are returned are only those for which a user has Read Properties permission.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜