web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue with checking ag...
Power Automate
Unanswered

Issue with checking against 2 SharePoint lists for the same users

(0) ShareShare
ReportReport
Posted on by 8
Hello all,
 
I am stuck with the following requirements. I have 2 SharePoint lists, and the columns contain a person column, named, PersonColumnList1 & PersonColumnList2

I'm trying to avoid using an apply to each, and instead using a select action 

This is what I am doing sucessfully:

Get Items SPList1

Select 
And mapping UserC : with the following in the expression: 
if(empty(item()?['PersonColumnList1']), item()?['Title'], item()?['PersonColumnList1'])

Then I have another Select 2
using the Output from Select
Map UserC: Expression: item()?['UserC']?['DisplayName']

This works and I can see all the users I am trying to obtain in an array:
[
  {
    "UserC""Joe Bloggs"
  },
  {
    "UserC""Tom Smith"
  },
  {

etc
 
I then have a Get Items for my 2nd sp list

and when I use a filter array and From: value from the get items 2nd sp list, value is item()?['
PersonColumnList2']?['DisplayName'] contains outputs('Select_2')

and its here the flow fails:

 
InvalidTemplate. The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@contains(item()?['PersonColumnList2']?['DisplayName'], outputs('Select_2'))' failed: 'The template language function 'contains' expects parameters of matching types: a dictionary and a key (string), an array and a value (object), or a string and a substring. The provided types 'String' and 'Object' are incompatible.

Not sure, what I need to do and need help
Categories:
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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 265 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

#3
trice602 Profile Picture

trice602 202 Super User 2025 Season 2

Last 30 days Overall leaderboard