cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Akanksha1
New Member

Saving data from multi screen powerapp back to sharepoint list

Hi
I have made a powerapp using a sharepoint list which has a good number of column entries ... so i want my multiscreen powerapp to have a save button on its last screen.
I tried creating it and used patch function for the same but it does not save data back to SP list .
1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Akanksha1 ,

How do you collect the entries within your multiple screen? Using Edit forms or multiple individual controls (e.g. Text Input, Dropdown, ...)?

Do you want to save data from your multiple screens back to your SP list when press the button in your last screen using Patch function?

Further, is there some error show up when you executes your Patch function?

 

Based on the Patch formula you provided, I think there is something wrong with it. Please consider modify your formula as below:

Patch(
           Flour_sieving_Time_Stamp,
           Defaults(Flour_sieving_Time_Stamp),
           {
              Title: vend.Text,
              Activity_Time_Stamp: Date1,
              Inspected_by: insp.Selected.Value,    /* <-- you may type insp.Selected.PropertyName */
              Today_Date: date,
              Machine_Type: mactyp.Selected.Value,    /* <-- you may type mactyp.Selected.PropertyName */
... } )

Note: I assume that the Inspected_byMachine_Type, ... are all Text type columns in your SP list.

 

If the Inspected_byMachine_Type, ... are all Choice type columns in your SP list, please modify above formula as below:

Patch(
           Flour_sieving_Time_Stamp,
           Defaults(Flour_sieving_Time_Stamp),
           {
              Title: vend.Text,
              Activity_Time_Stamp: Date1,
              Inspected_by: {
Value: insp.Selected.Value /* <-- you may type insp.Selected.PropertyName */
}, Today_Date: date, Machine_Type: {
Value: mactyp.Selected.Value /* <-- you may type mactyp.Selected.PropertyName */
},
... } )

 

Also please consider take a try to submit your data using Collect function as below:

Collect(
           Flour_sieving_Time_Stamp,
           {
              Title: vend.Text,
              Activity_Time_Stamp: Date1,
              Inspected_by: insp.Selected,   
              Today_Date: date,
              Machine_Type: mactyp.Selected,
... } )

Note: Please make sure your Network is in a good condition.

 

In addition, as an easy solution, you could consider add one Edit form within each one of your multiple screens (each Edit form connects to your same SP list), then use the Edit form to collect the column entry. Within each Edit form, you could enable corresponding field data cards for collect the entry. After that, you could save multiple form data back to your SP List once time.

I have made a test on my side, please take a try with the following workaround:

Set the OnSelect property of the "Submit" button in your Last screen to following:

Patch(
      Flour_sieving_Time_Stamp, 
Defaults(Flour_sieving_Time_Stamp),
EditForm1.Updates,
EditForm2.Updates,
EditForm3.Updates,
... )

More details about submitting multiple form data back to SP list data source, please check the following threads:

https://powerusers.microsoft.com/t5/General-Discussion/Is-it-possible-to-split-the-Edit-Form-into-mu...

https://powerusers.microsoft.com/t5/Creating-Apps/Multiple-forms-to-one-item-sharepoint-list/m-p/142...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Jeff_Thorpe
Super User
Super User

Can you test the Save in the PowerApps studio to see if any errors are returned? Also the SharePoint list name is "Flour_Sieving_Time_Stamp"? 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
v-xida-msft
Community Support
Community Support

Hi @Akanksha1 ,

How do you collect the entries within your multiple screen? Using Edit forms or multiple individual controls (e.g. Text Input, Dropdown, ...)?

Do you want to save data from your multiple screens back to your SP list when press the button in your last screen using Patch function?

Further, is there some error show up when you executes your Patch function?

 

Based on the Patch formula you provided, I think there is something wrong with it. Please consider modify your formula as below:

Patch(
           Flour_sieving_Time_Stamp,
           Defaults(Flour_sieving_Time_Stamp),
           {
              Title: vend.Text,
              Activity_Time_Stamp: Date1,
              Inspected_by: insp.Selected.Value,    /* <-- you may type insp.Selected.PropertyName */
              Today_Date: date,
              Machine_Type: mactyp.Selected.Value,    /* <-- you may type mactyp.Selected.PropertyName */
... } )

Note: I assume that the Inspected_byMachine_Type, ... are all Text type columns in your SP list.

 

If the Inspected_byMachine_Type, ... are all Choice type columns in your SP list, please modify above formula as below:

Patch(
           Flour_sieving_Time_Stamp,
           Defaults(Flour_sieving_Time_Stamp),
           {
              Title: vend.Text,
              Activity_Time_Stamp: Date1,
              Inspected_by: {
Value: insp.Selected.Value /* <-- you may type insp.Selected.PropertyName */
}, Today_Date: date, Machine_Type: {
Value: mactyp.Selected.Value /* <-- you may type mactyp.Selected.PropertyName */
},
... } )

 

Also please consider take a try to submit your data using Collect function as below:

Collect(
           Flour_sieving_Time_Stamp,
           {
              Title: vend.Text,
              Activity_Time_Stamp: Date1,
              Inspected_by: insp.Selected,   
              Today_Date: date,
              Machine_Type: mactyp.Selected,
... } )

Note: Please make sure your Network is in a good condition.

 

In addition, as an easy solution, you could consider add one Edit form within each one of your multiple screens (each Edit form connects to your same SP list), then use the Edit form to collect the column entry. Within each Edit form, you could enable corresponding field data cards for collect the entry. After that, you could save multiple form data back to your SP List once time.

I have made a test on my side, please take a try with the following workaround:

Set the OnSelect property of the "Submit" button in your Last screen to following:

Patch(
      Flour_sieving_Time_Stamp, 
Defaults(Flour_sieving_Time_Stamp),
EditForm1.Updates,
EditForm2.Updates,
EditForm3.Updates,
... )

More details about submitting multiple form data back to SP list data source, please check the following threads:

https://powerusers.microsoft.com/t5/General-Discussion/Is-it-possible-to-split-the-Edit-Form-into-mu...

https://powerusers.microsoft.com/t5/Creating-Apps/Multiple-forms-to-one-item-sharepoint-list/m-p/142...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,531)