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 / search if the element ...
Power Apps
Answered

search if the element exists if it exists notify if it does not exist create it

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good afternoon,

Well I'm new to powerapps and I'm building an App, which works like this,

When the user creates the element, go to a sharepoint list and validate the ID number and if the element type that he chose already exists, if so, notify it and if it is not created, create it.

Categories:
  • cds Profile Picture
    1,001 on at

    If(ID exactin Datasource.Column, Notify("This item exists", notification.information, 5000), false)

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    In operator is not suggested as it's not delegable for sharepoint.

    I would recommend you use IsBlank() & LookUp() function to check there are any records with this element.

    If(
    IsBlank(LookUp('SP list', <ColumName>=<TheElement>).ID),
    Patch('SP list',Defaults('SP list'),{ <ColumName>:<TheElement>}),
    Notify("The element already exists!")
    )

    For example:

     

    If(

    IsBlank(LookUp('SP list', Title=Textinput1.Text).ID),

    Patch('SP list',Defaults('SP list'),{ Title:Textinput1.Text}),

    Notify("The Title already exists!")

    )

     

    Hope this helps.

    Sik

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard