Skip to main content

Notifications

Announcements

No record found.

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>

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans