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 / Drop down box in galle...
Power Apps
Answered

Drop down box in gallery, update data to sharepoint, data going crazy

(0) ShareShare
ReportReport
Posted on by 57

Hello,
I'm having an issue using dropdown input inside my gallery. The following is an over view of my app.

 

Department 1 inputs data. BusinessUnitdd is a dropdown optional field where the default will be "-" if nothing is selected. This data saves to a sharepoint list 'Test List'. The BusinessUnitColumn is a single text input. 

 

Department 2 receives data. Their page is a gallery where the source is the 'Test List' but it is filtered. The gallery shows the UniqueID and has dropdown BusinessUnitdd. If BusinessUnitdd shows "-", the user needs to select either "Department 3" or "Department 4"


BusinessUnitdd (dropdown) Information: 

Default: thisitem.businessunitcolumn

items: ["-", "Department 3", "Department 4"]

Once Department 2 is done selecting BusinessUnitdd, they select the save button. Here is where I have done several variations of coding and everything has the same out come. I originally had this all coming through a filtered collection and save it to that as a test first. Then changed it to come straight from the sharepoint list. Another point I had a ForAll() before the update if. The following is the formula from the save button.

UpdateIf(
 'Test List',
 AssignedTo=Blank() && Archived = Blank() && Or(Module.Value="-", BusinessUnit="-"),
 {
 BusinessUnitColumn: BusinessUnitdd.Selected.Value
 
 }
);


Here's where it gets weird. 

 

I change each item in the gallery to a department or "-", then the last one I change and select save and it changes all BusinessUnitdd in the gallery to the last selected text. Then it updates the sharepoint list with that last selected text. 

Changed dropdown values to picture below:

jbaggett_0-1611868642807.png

 

Selected save and drop down values change to below: (this is also the data that saves to the sharepoint list)

I have tested this and if my last selection is "department 4" then all lines now become "department 4", etc. 

jbaggett_1-1611868676760.png

 

Any suggestions or help would be much appreciated. 

Categories:
I have the same question (0)
  • Verified answer
    365CornerDawid Profile Picture
    377 on at

    Hey @jbaggett 

    If I understand your scenario correctly you should try to add Collection to your configuration which could store the information about the dropdowns selection. Collection should include the ID of the items so you can match the data.
    I would suggest to you check following article from @mdevaney PATCH Multiple Records In Power Apps 10x Faster - Matthew Devaney which might be perfect answer to your question.

    Regards
    Dawid

  • jbaggett Profile Picture
    57 on at

    Hey that did work! Thank you!
    I originally didn't want to make the update happen on the "On Change" for the drop down since I have two, but I think it's going to work out just fine. 

    Basically I just took out the UpdateIf function and used a straight Patch function which worked out really well. 

     

    Thanks again!

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard