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 / Finding Duplicate Valu...
Power Apps
Unanswered

Finding Duplicate Value from SP List in customized form

(0) ShareShare
ReportReport
Posted on by 32

Hi everyone,

I Have to check for duplicate roll number and first name in a customized SharePoint form. I have to check duplicate for roll number and first name column of SharePoint list 'Student Info' and display message "value Already Exist" in form. I was able to come up with the logic of this task :

Bharat0803_0-1704335568561.png

Same logic i have applied to Roll number and it is working for Roll number when I am entering a duplicate roll number but new name which doesn't exist in the list but when Iam entering duplicate first name and new roll number then it is giving "Value Already Exist" message for both the fields which shouldn't happen. Also, the "Value Already exist" should come after clicking submit.can any one help me out with this one.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    Hi @Bharat0803 ,

    You really need to test both fields (I am guessing the control name on last name as you have to displayed it) and you do not need If/true/false

    !IsBlank(
     LookUp(
     'Student Info', 
     Firstname = DataCardValue7.Text && 
     LastName = DataCardValue8.Text
     ).LastName
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Bharat0803 Profile Picture
    32 on at

    Hello @WarrenBelz ,

    Thanks for replying, no I need to test for first name and roll no not the last name. The image is for first name and I have put that formula in error message part of first name DataCard(in Visible Property)

  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    Hi @Bharat0803 ,

    Then based on what I posted, can you attempt the required code please.

  • Bharat0803 Profile Picture
    32 on at

     

    @WarrenBelz

     It is working; however, it is saving duplicate first name to SharePoint list which should not happen if there is a duplicate then it should be saved only after removing or changing the first name to a name which doesn't exist in list in form.

  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    @Bharat0803 ,

    Firstly, please supply the code you are using (in Text) and then please tell me in as simple terms as possible exactly what result you want and what is happening now as this is getting more confusing to me as it progresses.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 84

#2
WarrenBelz Profile Picture

WarrenBelz 79 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 40 Super User 2026 Season 1

Last 30 days Overall leaderboard