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 / Sending multiple lines...
Power Apps
Unanswered

Sending multiple lines with condition

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone, 

 

I'm developing an app using Power Apps to my company to measure how many extra hour the devs are making during the month.

I did this design, when I click at the first checkbox_1, it shows the datepicker_1, date_1, start_time_1, end_time_1 and the duration_1 and the checkbox_2. 

And when the dev clicks the checkbox_2 it shows the datepicker_2, date_2, start_time_2, end_time_2, checkbox_3, and so on..

So, I know PowerApps is perfect to unitary situations, a patch or an updateIf, but how can I use PApps to Patch multiple lines with a condition? 

For ex, the dev checked the checkbox_1, _2, _3, _4, filled the dates, and then send the information just for these 4 lines.

How can I write the code to send just the checked lines? 

I thought If inside If inside Ifs, but I think there's an optimized way to do this.

 

Thanks in advance.

papps_dev.png

 

Categories:
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Set them up inside a gallery, then use a ForAll. I assume these are adding items to a splist? if so Collect(SPList Name, ForAll(Filter(GalleryName,checkbox=true),{Column:data, Column:data}) etc.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello Rob, 

     

    Thanks for the answer. 

    But how I should add these lines inside a gallery?

    I though gallery needs a database. 

     

    Thanks in advance.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    If the items will always be the same and only used as the basis to send something somewhere else you can run a

    Collect(YourCollectionName, {columnone: "yourdata", columntwo:"yourdata"... Etc},

    {columnone: "yourdata", columntwo:"yourdata"... Etc},{columnone: "yourdata", columntwo:"yourdata"... Etc})

    In the onstart of the app and use that to run the gallery

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard