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

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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,611 on at
    Can't collect data from Gallery to collection
    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,611 on at
    Can't collect data from Gallery to collection
    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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 724 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
SebS Profile Picture

SebS 239 Moderator

Last 30 days Overall leaderboard