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 / Create a collection fr...
Power Apps
Unanswered

Create a collection from a [Table] column in another collection

(0) ShareShare
ReportReport
Posted on by 4

Hey,

I am initially building a collection from a SPO Doc Lib:
ClearCollect(colDocLib,'Documents')
This collection is the Items property of a gallery.
When the code runs, there are two columns that retrieve a [Table] value.
How do I turn this [Table] into a collection by itself so that I can store the values from these columns and load them for each item in the gallery when the User opens up the app and runs a new session?

Categories:
I have the same question (0)
  • timl Profile Picture
    37,229 Super User 2026 Season 1 on at

    Hi @cietwierz 

    Just to go back a step, why do you want to create a new collection when the data already exists in colDocLib?

    If your intention is just to show the table values for each item in the gallery, you can add a child gallery to your main gallery and set the Items property to ThisItem.YourTableColumn.

     

  • cietwierz Profile Picture
    4 on at

    Hi @timl ,

    So i have a button in each gallery item ,which moves the file from one doc library to another, using a combination of Graph API's 'PUT' method and Patch function. Here is a fragment of the Patch with the two columns i have trouble with:
    Patch(

        'HR Process Archived Documents',
            First(
                Filter(
                    'HR Process Archived Documents',
                    ID = varLastArchivedFile.ID)
            ),
                {
                    'Process Name' : galHome.Selected.Process_x0020_Name,
                    'Process Number' : galHome.Selected.Process_x0020_Number,
                    //Name : galHome.Selected.'{Name}',
                    'Document Author': galHome.Selected.Document_x0020_Author,
                    //'Created By': galHome.Selected.Author,
                    'Process is stored in GRC': galHome.Selected.Process_x0020_is_x0020_stored_x0020_in_x0020_GRC,
                    'Process Applicability': colProcessApplicability, <---

                    'Processor of the process': colProcessor <---
    }
    )
    This works fine but only for the session that the User is currently working in. When he opens the app again, the collections are empty. And these two columns (

    'Process Applicability' and 'Processor of the process') are mutliselect LookUp type columns
    Also, i am not able to access these lookup columns through ThisItem.<column name> at any stage..

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 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard