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 / Unable to patch multip...
Power Apps
Unanswered

Unable to patch multiple records in sharepoint through gallery

(1) ShareShare
ReportReport
Posted on by 248
Hi Everyone,
 
Can someone plsssss help me on this? i have sepnt hrs but unable to solve. i have tried all the way but nothing worked. I want to update records in sharepoint list through gallery, as i have repeated column projectIDs and IDs are repeated, then against each Project there are more then 4 milestones and each milestone has start and end date. i want to update multiple dates at once but only able to update one row item at once. 
 this is the formula i am using to save the records.
If(IsBlank(Patch(TS_Project_Milestones,
LookUp(TS_Project_Milestones, Project_ID = Gallery4.Selected.Project_ID && Milestone = Gallery4.Selected.Milestone),
{
Start_Date: DatePicker1.SelectedDate,
End_Date: DatePicker1_1.SelectedDate
}
))
Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at
    Hi @aayaanmayank, Try this:
     
    ForAll(Gallery4.AllItems As Var,
           Patch(TS_Project_Milestones,
                 LookUp(TS_Project_Milestones, 
      Project_ID = Var.Project_ID && Milestone = Var.Milestone
      ), { Start_Date: DatePicker1.SelectedDate, End_Date: DatePicker1_1.SelectedDate } )
    ​​​​​​​)

    Please click Does this answer your question 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 a Like.


    Thanks,
    ANB
  • aayaanmayank Profile Picture
    248 on at
    hi thanks for trying but this is updating one date across all the date picker for that projectID. 
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at
    Hi @aayaanmayank, The code should work if Milestone is added in AND condition with Project ID. 
     
    Try this:
     
    Patch(TS_Project_Milestones,
          ForAll(Gallery4.AllItems, 
                 {
                         Start_Date: DatePicker1.SelectedDate,
                         End_Date: DatePicker1_1.SelectedDate
                  }
                 )
    )

    Please click Does this answer your question 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 a Like.


    Thanks,
    ANB
     

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 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard