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 / Button not working in ...
Power Apps
Unanswered

Button not working in powerapps colGridData

(0) ShareShare
ReportReport
Posted on by 12

I am trying a create a power app and fairly new to this. I tried to create a button that will collect data when selected. 

This is the formula I am using. not sure why it is not working. 

 

ClearCollect(colGridData,'AllocationDatasource')

 

I tried getting colGridData in a gallery to see if data comes there. But nope. Data source is sharepoint list that has 8 columns. 

Button is in Homescreen and OnSelect  property. Appreciate your help! 

 

@sonisick  @Ramole 

Categories:
I have the same question (0)
  • jriemsma Profile Picture
    11 on at

    the ClearCollect command only creates the collection.  You can view the first five rows of a valid Collection by going to View > Collections.    Once the collection is created, you can display it in a gallery by selecting the Collection as the source under the gallery's 'Items' attribute.

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @YuVi 
    Have look this post i have answered while ago similar question and if you dont understand or need more help let me know please 
    https://powerusers.microsoft.com/t5/Building-Power-Apps/Patch-and-updateif-to-upload-bulk-records/m-p/1379073#M358663 

  • YuVi Profile Picture
    12 on at

    I am not able to see my data in View-> collections. Here is the screenshot. 

     

    YuVi_0-1649307624988.png

     

    I also see many columns here whereas I only had 8 columns in my sharepoint list. 

     

    YuVi_1-1649307706190.png

    I am not sure what I am doing wrong here. 

     

    @RandyHayes @Ramole 

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @YuVi 
    I don't see any problem with the Clear Collect , lets troubleshoot try this 

    ClearCollect(colGridDataSource,'AllocationDatasource')

    dont change the above code and add to a button run it and see if you will get  data let me know 

  • YuVi Profile Picture
    12 on at

    It didn't work. I created a button and used the above formula. I can see the items now in View ->collections. But not when I click the button. 

     

    YuVi_1-1649654691814.png

     

    Any idea why this could happen? 

  • YuVi Profile Picture
    12 on at

    Function is OnSelect. 

     

    YuVi_2-1649654854392.png

     

  • WarrenBelz Profile Picture
    155,656 Most Valuable Professional on at

    @YuVi ,

    If you can see the items in View > Collections and the Items of your gallery is colGridDataSource, then it is simply a matter of putting labels in your gallery with the Text ThisItem.YourfFieldName (for your 8 field names) and you will see the data.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 392

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 271 Super User 2026 Season 1

Last 30 days Overall leaderboard