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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

SSRS Report with multi value lookup parameter

(0) ShareShare
ReportReport
Posted on by 20

I am working on an SSRS report which takes two parameters, both a lookup reference to the Account entity. One of these parameters is a multi value (Attachment Owner) and the other a single value (Pole Owner). I have this report working using a Fetch XML (See below). The report works if I only select a single value for the Attachment Owner, however if I select more than one value the report throws an error. After some testing it appears the FetchXML does not like the comma deviated list of GUIDS provided by the multi value parameter. Is there another approach I should be looking at or am I doing something wrong with this approach?

In the below FetchXML statement I am specifying the Attachment Owner parameter inside a single 'in' condition inline:

    <condition attribute="varju_owner" operator="in" value="@attachmentOwner"/>

I have also tried defining this condition as a multi line declaration with the same result:

      <condition attribute="varju_owner" operator="in">
        <value> @attachmentOwner</value>
      </condition>

Here is the full FetchXML statement that is giving me errors:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="varju_attachment">
    <attribute name="varju_attachmentid" />
    <attribute name="varju_name" />
    <attribute name="createdon" />
    <attribute name="varju_type" />
    <attribute name="varju_owner" />
    <attribute name="varju_installationdate" />
    <order attribute="varju_name" descending="false" />
    <filter type="and">
      <condition attribute="varju_owner" operator="in" value="@attachmentOwner"/>
    </filter>
    <link-entity name="varju_pole" from="varju_poleid" to="varju_pole" link-type="inner" alias="a_c48dfd112a07eb11a812000d3a8c999a">
      <attribute name="varju_owner" />
      <attribute name="varju_polenumber" />
      <attribute name="varju_altpolenumber" />
      <filter type="and">
        <condition attribute="varju_owner" operator="eq" value="@poleOwner"/>
      </filter>
    </link-entity>
  </entity>
</fetch>

I have the same question (0)

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 149

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 79 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 62 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans