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 / How do I check if a va...
Power Apps
Unanswered

How do I check if a value is already in the datasource when I add a value?

(0) ShareShare
ReportReport
Posted on by 634

Here is what I have

  1. Combobox
  2. Textbox with button that submits the value in the textbox to the combobox's datasource

Here is what I want to do. When the button is clicked I'd like to check to see if the value is already in the datasource. Best practice would probably be to make sure that it catches matches for upper and lower case variants. Doable?

Categories:
I have the same question (0)
  • GarethPrisk Profile Picture
    2,828 on at

    What is your data source?

    Ideally, you'll check before submit but there are ways to validate/prevent at the source (depending on what you're using). Dataverse supports the concept of alternate keys (https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/define-alternate-keys-reference-records) which can prevent duplicates at the DB-level.

     

    Alternatively, you'll want to do a LookUp and confirm the value does not yet exist, BEFORE you attempt to create it. Here is an example from a quick search: https://docs.microsoft.com/en-us/power-platform/admin/set-up-duplicate-detection-rules-keep-data-clean

     

      •  
  • Future_Vision Profile Picture
    634 on at

    My data source is whatever the default data source is when you add data. I simply click the 'Create new table" option

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard