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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / check if SharePoint li...
Power Apps
Answered

check if SharePoint list contains A record with two fields

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

the sharepoint columns are 

username, document, date

(document is a text string)  

 

I am able to connect to the datasource (sharepoint) add and delete records, and do lookups (but not for a "and" condition on a specific record).

 

I just need a script that checks all the sharepoint list for a record that contains BOTH a specified user AND specified document (the date does not need to be checked). The script should return true/false.

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Consider the following:

    LookUp(yourList, userName = someUserName && document = someDocument, true)

    This will return true if the record exists, false if not.

     

    I hope this is helpful for you.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard