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 / Collect Textinput Gallery
Power Apps
Unanswered

Collect Textinput Gallery

(0) ShareShare
ReportReport
Posted on by 84

Hi, 

 

I've made a shoppingcart app and i want to collect a textinput field that i placed in the gallery (Numbers/Amount) to my sharepointlist.

How can i collect/patch the value of the fields to the same column as the item in the gallery?

 

The code that i use to collect the gallery: 

 

ForAll(MyCollection;Collect(Uitgeleend;{Titel:Titel;Categorie:Categorie;Barcode:Barcode;project:Textcart.Text;datumretour:Datepick.SelectedDate}))

 

Thanks! 

amount.png
Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @MelvinGRM 

     

    Can you share more details about the schema of both SP List and collection and how you are collecting data in collection?

     

    If you want to save details to SP, then you have use Patch function:

    ForAll(MyCollection;Patch(Uitgeleend;Defaults(Uitgeleend);{Titel:Label1.Text;Categorie:Label2.Text;Barcode:Label3.Text;project:Textcart.Text;datumretour:Datepick.SelectedDate}))

     

    If you can share more details, we will be able to help you better.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    Hi @MelvinGRM ,

    For a new record in the data source, as long as all the fields line up, you can do this

    Collect(
     Uitgeleend;
     MyCollection
    )
    

     

    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 Profile Picture
    156,456 Most Valuable Professional on at

    Hi @MelvinGRM ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

  • MelvinGRM Profile Picture
    84 on at

    Hi @WarrenBelz,

     

     

    Sorry for my late response... Thanks for the reminder. 

     

    The fields doesnt add up, because i want to add data with the collection to my sharepoint. 

    Maybe I should explain more, sorry my post was unclear

     

    MyCollection ('Techniek Voorraad") list = red columns 

    In my App i want to collect those items and add some new value and collect it no my "uitgeleend" list. 

     

    My Lists: 

    Aantal = quantity of products 

    sharepoint lists.png

     

    The app: 

    problem3.png

     

    So the code that i use (and works for me): 

     

    ForAll(MyCollection;Collect(Uitgeleend;{Titel:Titel;Categorie:Categorie;Barcode:Barcode;project:Textcart.Text;datumretour:Datepick.SelectedDate}))

     

    Now i added a inputfield for quantity (See green quant.text field) And i want to collect al the unique records of the field in the collection "uitgeleend". So how to do this? 

     

    I tried to add AantalUIT:quant.text after selected date, but then i get the same value. 

     

    Thanks for the help! 

  • WarrenBelz Profile Picture
    156,456 Most Valuable Professional on at

    @MelvinGRM ,

    My suggestion was only around the collection structure and another way of doing it - did this work for you?

  • MelvinGRM Profile Picture
    84 on at

    no it dit not work for me. 😞 

  • MelvinGRM Profile Picture
    84 on at

    Hi @yashag2255 , 

     

    I changed it to patch, but still i get the same value from my textinput. I posted more information about my problem below. Hope you can help me. 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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard