web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ShowColumns improperly...
Power Apps
Answered

ShowColumns improperly naming fields field_1, field_2, etc.

(1) ShareShare
ReportReport
Posted on by 19
The following code works properly, except that the collection shows that commentsOCA column is labeled 'field_1', and comments field is labeled 'field_2'. Title is labeled correctly.  How do I fix this?
 
ClearCollect(
    colFilteredComments,
    ShowColumns(
        Sort(
            Filter(
                FirstN(
                    PassOnComments,
                    2000
                ),
                Lower(txtSearch.Text) in Lower(comments) || Lower(txtSearch.Text) in Lower(commentsOCA)
            ),
            Title,
            SortOrder.Descending
        ),
        Title,        
        commentsOCA,
        comments
    )
);
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,136 Most Valuable Professional on at
    Unfortunately, you have created your list initially from Excel and this process creates the "underlying" field names with the field_x schema. There is no way of changing/fixing this after the list has been created. You can create a new list with the field names you need (for other reasons, settle on these and do not change them). You can then import the existing data (copy/paste into a grid view in SharePoint or if a lot of data, you can use Power Automate to bring them in 5k at a time).
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard