Hi Everyone,
I have one question that can we create a canvas app in which create buttons automatically by taking data from an excel file(like the data present in the column and rows) which makes the app dynamic. So that when we want to change or add more buttons, labels, or any other action on the screen, we can change/add on the excel and it will automatically be generated on power apps?
@lisha Yes and no... 🙂
No, you can't dynamically add a button to the canvas. You can hide or show existing buttons depending on conditions.
Yes, you could add a Gallery to dynamically "create" buttons (actually rows in your Gallery). But in such a scenario you still have to pre-define what a button should do. As each button will follow the same logic you have to add the Logic to the OnSelect property and have a formular something like that
Switch(
ThisItem.method,
"Method 1",
Set(
varBlaBla,
"123"
),
"Method 2",
ClearCollect(
colWhatEver,
SampleList
)
)
Please click Accept as solution 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 Thumbs Up.
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473