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 / Load SharePointList Co...
Power Apps
Answered

Load SharePointList Columns into existing collection

(0) ShareShare
ReportReport
Posted on by 28

Hello,

I have an app with a titlefield, a gallery and two buttons (save, load).

 

When I want to load the listdata (depending on the titlefield) I use following code:

Clearcollect(HoursCollection; Showcolumns(Filter(SPlistHours; Title = AppTitle.Text); "Title"; "Hours")

 

In the Collection I already have the columns 'ColTitle' and 'ColHours'. So I want to load the Title and hours in those existing columns.

How can I do that?

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Sgalle 

    If the issue is simply that your column names do not match you can use RENAMECOLUMNS.

    ClearCollect(
     HoursCollection;
     RenameColumns(
     Showcolumns(
     Filter(SPlistHours; Title = AppTitle.Text);"Title"; "Hours"
     );
     "Title","colTitle",
     "Hours","colHours"
    )

     

    Please show me a sample of what the collection looks like before the changes and after the changes if my suggestion is not what you wanted.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Sgalle Profile Picture
    28 on at

    Great! That worked. Thanks!

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Sgalle 

    Awesome.  I am glad we solved the issue 🙂

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 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard