Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SSRS report on SharePoint list and CAML, filter by person or group field with multiple entries

$
0
0

I would like to ask how can we input multiple people name in SSRS report to filter the data from a SharePoint multiple entries person and group field by CAML query.

We have a SharePoint list with a multiple entries person or group field, e.g.

|Title|Users|
|Item 01|User A, User B, User C|
|Item 02|User A, User C|
|Item 03|User D, User C|
|Item 04|User D, User E|

When user input parameter "User A, User C", should return item 02.

When user input parameter "User C", should return item 01, 02 and 03.

Following is my CAML in my dataset:

<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ListName>Cases</ListName>
  <ViewFields>
    <FieldRef Name="Title" />
    <FieldRef Name="Users" />
  </ViewFields>
  <Query>
    <Where>
      <Contains>
        <FieldRef Name="Users" />
        <Value Type="Text">
          <Parameter Name="Users" />
        </Value>
      </Contains>
    </Where>
  </Query>
</RSSharePointList>


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>