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 / Collection not showing...
Power Apps
Answered

Collection not showing all columns in Item property of gallery

(0) ShareShare
ReportReport
Posted on by 15

I am working on creating an editable gallery in my app. The gallery items can either be items from a collection or a SharePoint list, depending on the mode of the gallery. The mode of the gallery is set by a variable (varGalEmployeesMode) which is determined by the Mode of the EditForm on the same screen. 

 

OnVisible of the screen I create the schema of the collection and then clear its contents. This schema matches the schema of the SharePoint list:

McCHubie_4-1699635420983.png

 

 

 

If varGalEmployeeMode = "New", then the items of the gallery should be the colUpdateEmployees_1, otherwise the items should be from the SharePoint list quantity_CraftDispatchRequest.

 

Items formula.jpg

The current value of varGalEmployeeMode is equal to "New"

McCHubie_0-1699635217297.png

 

The collection element of the formula shows all columns in colUpdateEmployees_1

McCHubie_1-1699635254204.png

 

The SharePoint list element shows all columns of the SharePoint list

McCHubie_2-1699635289148.png

 

The Problem

The formula only results in showing 4 columns from the collection. 

McCHubie_3-1699635321691.png

 

Why is this formula not returning all columns from my collection? 

 

Categories:
I have the same question (0)
  • Verified answer
    M_Ali_SZ365 Profile Picture
    1,110 on at

    Hi @McCHubie ,

     Here's how you might set up your OnVisible property of the screen to initialize the collection:

    ClearCollect(colUpdateEmployees_1, {
     ID: 1,
     Column1: "",
     Column2: "",
     Column3: "",
     //... include all other columns you need initialized
    });

    Then, for the gallery's Items property, you can switch between the collection and the SharePoint list using your mode variable:

    If(varGalEmployeesMode = "New", colUpdateEmployees_1, quantity_CraftDispatchRequest)

    If this solution resolves your issue, please consider marking it as accepted. ✅

    Warm regards,
    Muhammad Ali

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard