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 / Writing Collection Val...
Power Apps
Unanswered

Writing Collection Values into a Multi-Selection Field in a Sharepoint List

(1) ShareShare
ReportReport
Posted on by 20

Hello,

I have a SharePoint list (Documents) that contains a list of documents. Each row is a document with various pieces of information. With the help of a PowerApp, users should be able to view and "subscribe" to the documents. In the app, I have implemented a gallery through which users can view the information of the documents. Documents can be selected via checkboxes.

A Power Automate Flow is supposed to be triggered by changes to the document list. It should check which users have subscribed to which documents and notify them accordingly. My idea is to do this with the help of a second list ("Subscriptions") In this second list, I have the columns "User" and "Documents". The "Documents" column is a lookup column that has stored the document titles of the first list as values (Multi-Selection field). So, one row could contain the user "Michael Miller" and "Document A, Document B".

 

When clicking the checkbox of an item in the gallery, the item is written into a collection:

  • OnCheck: Collect(SelectedDocuments, ThisItem.'Document Name')
  • OnUncheck: Remove(SelectedDocuments,LookUp(SelectedDocuments, Value=ThisItem.'Document Name'))

I am failing to write all values of the collection into a multi-selection field in a row of the list.

My first approach was to set up an invisible form that contains all values of the collection (= all selected items) in the "Documents" field as "DefaultSelectedItems". The values where listed in the form, but when submitting the form, these values were not written into the SP list.

 

Any help or suggestions would be greatly appreciated.

Thank you in advance!

Categories:

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard