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 / Dynamically adding an ...
Power Apps
Unanswered

Dynamically adding an extra Column to Collection from Gallery

(0) ShareShare
ReportReport
Posted on by 1

Hi everyone, 

 

I am making an application where users can capture the approx percentage of time they spent per month on a contract. The user goes onto the Contract Selection Page and then selects the contracts they worked on (Photo 1).

 

Photo 1Photo 1

 

Then they click the Add X Contracts button at the bottom to go to the Time Input page where they type in the percentage of time spent on each contract (Photo 2)

Photo 2Photo 2

 

I am trying to add an extra column to a Collection (UserContractList) so that once the user gets onto the Time Input page they can just type in the approx time spent on each project and then it will write it to the collection. 

 

Does anyone know how to do that? I have tried to use the AddColumns formula in the Add X Contracts on Photo 1 and nothing seems to work.

 

ForAll(UserContractList,
AddColumns('UserContractList', "Example", true)
);
Navigate('Input Time for Contracts', ScreenTransition.Fade)

 

Also, how do I also submit the info on the Month and Year dropdowns from Photo 2 into the collection all by pressing the Submit button? Thanks. 

Photo 2.png
Photo 1.png
Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    A few notes to help you out with your questions:

     

    • AddColumns() does not need to be wrapped in a ForAll to add a column to a collection. AddColumns() itself returns a new table with column(s) added to it
    • If you want to dynamically added a column to a collection, Collect() or Patch() will do it automatically if the column name does not already exist
    • You can reference a selection from a dropdown control as data to add to a collection or otherwise use within your app. Typical syntax is something like: Dropdown1.Selected.Value

    Hope that helps!

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