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 / Saving multiple inputs...
Power Apps
Unanswered

Saving multiple inputs from gallery to one DataVerse field

(0) ShareShare
ReportReport
Posted on by 53

Hello,

 

I was going to improve my app, make it faster and easier to access to data for flows and in general.

At the moment I have several fields in DataVerse for every single user input in gallery, for example:

 

 

ClearCollect(colTest;
 {input: ""};
 {input: ""};
 {input: ""};
 {input: ""};
 {input: ""};
 {input: ""};
 {input: ""}
)

 

 

TextInput1 = first field in Database

TextInput2 = second field in Database

...and so on. Every single input control is assigned to a separate field in database. This makes a life harder, especially if I need to create some other screens with the same collections and refer to the controls.

 

I was going to create a logic which collects all data from gallery controls:

 

 

UpdateContext({varTest: Concat(ForAll(Gallery8.AllItems; TextInput25.Text); Value; ", ")})

 

 

then patch it to only one single field in database:

 

 

Patch(test; Defaults(test); {cr4f5_test: Concat(ForAll(Gallery8.AllItems; TextInput25.Text); Value; ", ")})

 

 

This works fine. The problem is appearing with loading the data and reproducing it to the new gallery, which reads it:

 

 

ClearCollect(colTest2; Filter(test; cr4f5_id = "1"))
UpdateContext({varTest2: ForAll(colTest2; Split(cr4f5_test; ", "))});;

 

 

varTest2 works fine, but I got a nested table with "Value" in it. 

 

If I'm trying to split it:

 

 

ForAll(colTest2; Collect(colTetete; {Result: Split(cr4f5_test; ", ")}))

 

 

I get a Result of nested tables with all data.

 

How do I split the data and collect it to create a Result (collection) like:

 

Text: Position 1

Text: Position2

Text: Position 3

...etc? Which would show it in an other gallery:

 

 

input: "123"
input: "125"
input: "1255"
input: "643634"
input: "4343"
input: ""
input: ""

 

..and be accesable with Index()?

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @maskwer ,

    I am not sure why you are taking the structure of the Dataverse table and splitting to all different strings on your front end Canvas App.  Have you looked at keeping the structure consistent and using the "form" to create new records?  

    See the following article which discusses creating new records using:

    SubmitForm(Form1);
    NewForm(Form1);

    and also shows you how you can modify the current existing records in a table on the UI.  

    https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/add-editable-tables 

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard