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 / Editing specific recor...
Power Apps
Answered

Editing specific records in a SharePoint List

(0) ShareShare
ReportReport
Posted on by

I've created a multiselect list that contains filtered records from a SharePoint list.  The user then selects the specific records that should be edited.  However, I've been trying to use ForAll to edit those specific records but I keep running into various problems (delegation being one of those problems).  Is there a way to select multiple records (from a SharePoint list) in a multiselect list and then edit those records directly in the SharePoint list after using the OnSelect property of a nearby button?  Thank you for your assistance.

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

    Hi @JustinR83 ,

     

    What does the multi-select list mean? the ListBox control? 

    If you mean that you select multiple records from the list box and want to edit these selected records, please try the following steps.

    1. set the ListBox.Items property to 'SP list'

    2. create an editable gallery, set Items to ListBox1.SelectedItems, then the gallery only shows the selected records. For more information about editable gallery: https://powerapps.microsoft.com/en-us/blog/editable-tables/ 

    3. insert some editable TextInput boxes inside the gallery and bind them to the columns by set Default property to ThisItem.ColumnName

    4. add an Edit button, set OnSelect: Set(Varmode,DisplayMode.Edit); add a Exit button, set OnSelect: Set(Varmode,DisplayMode.View)

    5. set the Gallery.DisplayMode: Varmode; set Textinput box.DisplayMode:Parent.DisplayMode

    6. set OnChange property of TextInput box as below to save the modification to sharepoint list.

    Patch('SP list',LookUp('SP list',ID=ThisItem.ID),{ColumnName:TextInput1.Text})

    Example:

    Snipaste_2020-05-07_08-23-56.png

    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 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard