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 / Duplicate record in Co...
Power Apps
Unanswered

Duplicate record in Collections

(0) ShareShare
ReportReport
Posted on by 106

I have an requirement that i added the invoice column in collection. Now i need to check whether the invoice no already exist in the collection or not? I got stuck with this . Please help me to achieve this.

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

    @Abhilash 

    Utilize the LookUp function for this...

     

    ex.  LookUp(yourCollection, criteria, true)  will return a true if there is such a record and false if not.

     

    I hope this is helpful for you.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    You will just do a check on if countrows invoice="number" = 0 then it does not exist, else it does

  • Abhilash M abi Profile Picture
    106 on at

    @TheRobRush @RandyHayes thanks for your suggestion, I tried with the suggestion but if the collection has invoice no 1 and 2 then i search the value again with 1 it is showing the count value as 2.  how to resolve this?

     

  • TheRobRush Profile Picture
    11,128 Moderator on at

    drop a screenshot of how you have your data source set up and i will write you an example true false return on a check of it

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Abhilash 

    You should simply by using the LookUp(yourCollection, criteria, true) function.  

    So, if you have invoice 1 and invoice 2 in your list, then LookUp(yourCollection, InvoiceNumber=1, true) will return true.  If you do LookUp(yourCollection, InvoiceNumber=3, true) you will have false.

     

    What is it that you are ultimately trying to do with the lookup into the list?  You might be overcomplicating if this is part of some logic to update items or create them.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard