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 / Can't collect data fro...
Power Apps
Suggested Answer

Can't collect data from Gallery to collection

(0) ShareShare
ReportReport
Posted on by
  1. Import a form from an existing sharepoint list
  2. Replace a text input column of one question with a gallery
  3. Add some text input columns and one drop-down column for the gallery
  4. Add an "add" button to create a dynamic row (formula with collection, colsteps)
  5. Create another button to collect the information that I type into the gallery (colgal)
The problem is that it shows 0 row of colgal collection.
 
This is the gallery
 
This is the table of "colsteps" 
 
This is the structure of "colsteps" collection
Collect(
    colsteps,
    {
        StepNo: Text(Last(colsteps).StepNo + 1),
        People: "",
        Tool: "",
        Action: "",
        Manual:"",
        PainPoint: ""
    }
);
 
This is the collection of "colgal" collection (I input the formula to a button)
Clear(colgal);
 
ForAll(GallerySteps.AllItems,Collect(colgal,{StepNo: txt_step.Value,People: txt_member.Value, Tool: txt_tools.Value, Action: txt_actions.Value, Manual: manual.Selected.Value, PainPoint:txt_painpoints.Value}));
 
but it doesn't work TAT



 
I have the same question (0)
  • Suggested answer
    developerAJ Profile Picture
    4,763 on at
    your formula looks good and i hope this is not nested gallery
     
    try debugging to see whether the gallery,allitems is returning any  set a variable set(TestCount,GallerySteps.AllItemsCount)
     
    one thing we can improve is using alias 
    ForAll(GallerySteps.AllItems As Record,Collect(col_GALTEST,{test:Record.TextInputCanvas1.Value,Heading:Record.TextCanvas3.Text}))
  • developerAJ Profile Picture
    4,763 on at
    are you still facing the issue??
     

    🏷️ Please tag me @developerAJ if you still have any queries or issue persists

    🤝 Let’s connect on LinkedIn 

    📘 Explore more on my articles

    🐱‍💻 Github Link

    💼👥 Looking for Jobs Power Platform & Microsoft Jobs Network

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 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard