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 / Submit Multiple Data i...
Power Apps
Answered

Submit Multiple Data in PowerApps Gallery to SharePoint List

(0) ShareShare
ReportReport
Posted on by

I have an app with a gallery linked to a list (Tracheostomy tubes). I want the user to search the gallery, add a quantity in a textinput field (txt_Number) against as many items as required, and then click a button to submit the details to another list (Tracheo tube orders) - each tube selected to go into a separate item. The 'orders' list has a column (Quantity) where the number of items should be added. Having difficulties working this out (tried using Patch but didn't work). Any help would be great! Pic below of the app:

Bonniedog2_0-1698285129868.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Bonniedog2 ,

     

    The general method of doing this looks like below:

    ForAll(Gallery.AllItems As GA, Patch('Tracheo tube orders', Defaults('Tracheo tube orders'),{'Tracheo tube': GA.Title, Quantity: GA.NumberTextInputBox.Text}))

     

    If you see any errors in your formula, please share the formula as well as the message.

     

    Best regards,

  • Bonniedog2 Profile Picture
    on at

    Thanks for the help - what does 'Tracheo tube' in 'Tracheo tube': GA.Title ... etc refer to?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Bonniedog2 ,

     

    Tracheo tube is the column name in Tracheo tube orders table,  GA.Title means Title column value in the Gallery, that is current row item's Title. GA.NumberTextInputBox means current row's number text input box in the Gallery.

     

    Best regards,

  • Bonniedog2 Profile Picture
    on at

    Sorry - here's what I've added: ForAll(BrowseGallery.AllItems As GA, Patch('Tracheo tube orders', Defaults('Tracheo tube orders'),{'Brand': GA.Title, Quantity: GA.txt_Number.Text}))

    I'm not sure of what I should be adding as the bolded value. This is the error:

    Bonniedog2_0-1698360492050.png

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Bonniedog2 ,

     

    It seems the Brand column is a LookUp or Choices column. Which one is it?

     

    If it's Choices column:

    'Brand': {Value: GA.Title}

    if it's LookUp:

    'Brand': LookUp(Choices(SPlist.Brand),Value = GA.Title)

     

    Best regards,

  • Bonniedog2 Profile Picture
    on at

    'Choices' column, and this got it working. Saved a lot of time - thanks!!

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard