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 / update data from list ...
Power Apps
Answered

update data from list box selection

(0) ShareShare
ReportReport
Posted on by 9

I am currently trying to create a scheduler where a user can select multiple time slots, and then when they click a button, it autofills their name into the teams excel record. I believe that it can be done with Update, however, I've puzzled this for several days and update requires a specification of the record to update, and doesn't like me giving that dynamically. I shared the layout of the table, as well as the screen below. Thank you for any help!

AshtonB_0-1690516779349.png

AshtonB_1-1690517012502.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    AshtonB Profile Picture
    9 on at

    Sharing this for anyone in the future who runs into the same issue I was having. This was my solution:

     

    //TablingTimeListingsBox = the list box where people select their times

    //FridayTabling = the data table that you are updating

    //TablingDateSelector = the dropdown menu of dates

     

    //This process relies on the first five digits of each listbox listing, and checks to see if they equal a corresponding text in a switch statement. If they do, then it updates that specific record. It isn't as dynamic as I would've prefered, but it works! I should note that the space for all dates 1:00 and onward is important, as "1:00" /= "1:00 " and my listings include that. Anyone else who runs into this, be sure you are particular on such details!

     

    Notify("This may take a few seconds, please don't close the app.",NotificationType.Information,10000);
    ForAll(TablingTimeListingsBox.SelectedItems,Switch(Left(ThisRecord.Value,5),

    "12:30",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '12:30':ThisRecord.'12:30'&", "&SignUpAsInput.Text}),


    "12:45",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '12:45':ThisRecord.'12:45'&", "&SignUpAsInput.Text}),

    "1:00 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '13:00':ThisRecord.'13:00'&", "&SignUpAsInput.Text}),

    "1:15 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '13:15':ThisRecord.'13:15'&", "&SignUpAsInput.Text}),

    "1:30 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '13:30':ThisRecord.'13:30'&", "&SignUpAsInput.Text}),


    "1:45 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '13:45':ThisRecord.'13:45'&", "&SignUpAsInput.Text}),

    "2:00 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '14:00':ThisRecord.'14:00'&", "&SignUpAsInput.Text}),

    "2:15 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '14:15':ThisRecord.'14:15'&", "&SignUpAsInput.Text}),

    "2:30 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '14:30':ThisRecord.'14:30'&", "&SignUpAsInput.Text}),


    "2:45 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '14:45':ThisRecord.'14:45'&", "&SignUpAsInput.Text}),

    "3:00 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '15:00':ThisRecord.'15:00'&", "&SignUpAsInput.Text}),

    "3:15 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '15:15':ThisRecord.'15:15'&", "&SignUpAsInput.Text}),

    "3:30 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '15:30':ThisRecord.'15:30'&", "&SignUpAsInput.Text}),


    "3:45 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '15:45':ThisRecord.'15:45'&", "&SignUpAsInput.Text}),

    "4:00 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '16:00':ThisRecord.'16:00'&", "&SignUpAsInput.Text}),

    "4:15 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '16:15':ThisRecord.'16:15'&", "&SignUpAsInput.Text}),

    "4:30 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '16:30':ThisRecord.'16:30'&", "&SignUpAsInput.Text}),


    "4:45 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '16:45':ThisRecord.'16:45'&", "&SignUpAsInput.Text}),

    "5:00 ",UpdateIf(FridayTabling,ThisRecord.ID = TablingDateSelector.Selected.ID,{ '17:00':ThisRecord.'17:00'&", "&SignUpAsInput.Text})
    ));

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard