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 to see if a Reco...
Power Apps
Answered

Check to see if a Record exists, if it exist then notify that it is already existing, else Notify that it doesn't exist

(0) ShareShare
ReportReport
Posted on by 167

Hi,

I have a Sharepoint list and a PowerApp.

 

svramkuna_3-1645035194978.png

 

 

On my Sharepoint List, I have  columns as: LC Name and Artifact ID.

 

svramkuna_2-1645035176220.png

 

 

 

Now when I enter Artifact ID in textbox(input) from app, it has to check from SharePoint whether Artifact ID already exist or not. 

 

If same Artifact ID already exist in SharePoint then it has to show message - "item already exists" and also if the artifact id doesn't exists it has to show message that "Item doesn't exists? 

 

Thanks in advance

 

1.PNG
2.PNG
Categories:
  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @svramkuna you could make this column unique in Sharepoint. When you edit the column there is an option "enforce unique values". This will prevent that you are able to Patch duplicates.

     

    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.

  • Verified answer
    PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @svramkuna you could also do a check within Powerapps. Just before you Patch you have to make a lookup to check if an item with this Artifact ID exists...

     

    But doing it like that will not guarantee that you will get duplicates. If two people at the same time try to Patch the same Artifact ID it might Happen that you will get duplicates - as we probably talk about miliseconds here its unlikly but still possible. Just wanted to mention this. 

     

    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.

     

     

  • svramkuna Profile Picture
    167 on at

    Hi @PowerRanger ,

     

    Thanks for your response, I have edited my question clearly. Can you please help me with that.

     

    Thankyou

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

    Then in the Visible property, set the formula to:

    LookUp('Training Request List', 'Artifact ID'=txtArtifactIDLPHS_2.Text, true)

     

    This will cause the label to be visible if it exists.

     

    You can also use that then for your DisplayMode property for the button.  

    Ex.  If(warningLabel.Visible, Disabled, Edit)

     

    I hope this is helpful for you.

    @svramkuna 
    You can create a label on your screen to indicate that the item already exists in the Text property.

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

    @svramkuna 

    If what you edited was that you'd show if the record exists, or not, then change the formula I provided to make the label Visible property to true, and then change the Text property to:

    "Item " &
    If(
     LookUp('Training Request List', 'Artifact ID'=txtArtifactIDLPHS_2.Text, true), 
     "already exists", 
     "doesn't exist"
    )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    How to patch data from powerapp to sharepoint list

    Hello. I have two powerapps : shopping cart and parcel tracking 

    shopping cart fields: parcelID, productname, deliverlocation, department, orderstatus

    (+other fields too but not impt)

    parcel tracking: parcelID, status

     

    The data from the shopping cart form will be found in a sharepoint list called OrderList

    The data from the parcel tracking form will be found in a sharepoint list called TrackList

     

     

    May I know what should I do if I want to submit the data in parcel tracking form and update the order status using corresponding parcel id?

    (for example parcelID is 123 in OrderList and TrackList and vendor just need to key in the delivery status and that once submitted will be shown in orderlist as respective orderstatus eg. 'Parcel out for delivery')

     

     

    TrackList (Parcel tracking)

    aaaa3_0-1671011089776.png

     

    OrderList

    OrderList (Shopping cart)

     

    aaaa3_1-1671011089778.png

     

    TrackList

     

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard