web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

To Check if a record already existing in Share Point while editing Gallery on the Go

(0) ShareShare
ReportReport
Posted on by 986

Hi everyone,
I had a requirement in which on a page I wanted to display records and if a user has to make a change to the record they can do that by using edit button and make the change and save it, for which I have raised a query on the Forum as well if possible to have a look at it as well and let me know a solution for it
Query-1 (Please do check this as well)
I did find a video which is quite close to what I need which was:
Power Apps Editable Table/Gallery like Excel 
There was one scenario if a user makes changes in 1 row for different fields then the collection will store 2 values for the same row which should not happen so to avoid this 'If' condition was used (in the reference video data source is Table and in my case it is a SharePointList)

Sidhant_02_0-1676275971720.png

This is the issue that I am facing the SharePoint list is not recognized

Sidhant_02_1-1676276019617.png


SharePoint List: Excel Grid

Sidhant_02_2-1676276038287.png

In Video: (TimeStamp: 20:30):

Sidhant_02_4-1676276087953.png

 

The scenario is:
If there is a record like:
ID: 5,  Title: Samuel, Display Name: Sam, State: Medium, EOD: 12/11/2022

Now let's say the user makes changes to the above record itself so now the application should not create a new record (this will create duplicates) so how do we check the id already exists if it does then the changes should be made for the existing ID itself and not create any new records, else: if there is no record with the ID (which is autogenerated) then create a new record.

Also the other query that I had was how to check the default name given to columns by sharePoint list like for a column created (like EOD) how can one check the default name given by the SharePoint list at backend?.

Regards,
Sidhant.

I have the same question (0)
  • Sidhant_02 Profile Picture
    986 on at
    Re: To Check if a record already existing in Share Point while editing Gallery on the Go

    Hi,
    I was able to solve the problem for which I have done the following:
    1- Created a variable named varCheck which is set to False onStart of App (created this variable to check if there is an account that is created already with the email)
    2- Created a pop-up box which notifies user if they try to register an account with the email that is already associated with an individual then a pop-up message should be shown "Email is already registered"
    3- On the Save button of the New Registration form added two conditions:
    Set(varCheck, LookUp('List Name', Email = TextInput.Text));

    If(!IsBlank(varCheck.Email),
    Set(showDialog,true)

    //In else part: I am carrying out the normal which is saving the record in SharePoint List

    If you found this helpful response, click on the Thumbs Up.


  • Sidhant_02 Profile Picture
    986 on at
    Re: To Check if a record already existing in Share Point while editing Gallery on the Go

    The above Response was some other requirement that I had which I entered in this topic by mistake and accepted it as well. This is not solved yet so if there is any solution do let me know

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 652 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 410 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 236

Last 30 days Overall leaderboard