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 / updating rows in Share...
Power Apps
Answered

updating rows in SharePoint

(0) ShareShare
ReportReport
Posted on by

have a SharePoint list that have 30 rows for each user ( mail ) and used this formula below to update SharePoint, when the user submit it will filter the SharePoint till finding the rows for this user and update it ( patching 1 to column ' No.OfEntreis " and the date to column " EntreisTime"  , but when the user submit again it updates the same row ( the first row of 30 ) 

 

i want it to update the second row if the first row is having value in the column ( No.of Entries ) 

( Updating the first row that have no value in the column " No.OfEntreis " ) 

 

How to do that ?? 

 

powerapps6.PNGpowerapps7.PNG

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at
  • MostafaGamal Profile Picture
    on at

     @mdevaney @I have tried couple of formulas but still the same problem

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    I would try creating a collection by filtering your SP list by three current user. Sort the collection by the Entry column. That should put the greatest number last in the collection and if there is a blank it will be first. Use the Last function to set a variable to 1+ the Entry. Patch that value to three list using the First function. 

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

    Hi @MostafaGamal ,

    Do you want to update all rows related to the current sign in user?

    Do you want to update single one record when you press the button each time?

     

    Based on the formula that you mentioned, I think there is something wrong with it. The First(Filter(UsersBOS, MailOfUser = User().Email)) formula could only filter the first record whose MailOfUser column is current sign in user. This formula would not detect if the 'No.OfEntreis' column has value in it.

     

    On your side, please consider modify your formula as below:

    Patch(
     UsersBOS,
     First(
     Filter(
     UsersBOS, 
     MailOfUser = User().Email,
     IsBlank('No.OfEntreis') // Add formula here
     )
     ),
     {
     'No.OfEntreis': 1,
     EntriesTime: Now()
     } 
    )

    Please take a try with above formula, hopes it could solve your problem.

     

    In addition, if you want to update all related rows for current sign in user when you press the Button once time, please try the the following UpdateIf formula:

    UpdateIf(
     UsersBOS,
     MailOfUser = User().Email,
     {
     'No.OfEntreis': 1,
     EntriesTime: Now()
     } 
    )

     

    Best regards,

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard