cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Akanksha1
Level: Powered On

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
Community Support Team
Community Support Team

Re: Saving data from multi screen powerapp back to sharepoint list

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
Super User
Super User

Re: Saving data from multi screen powerapp back to sharepoint list

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.
Community Support Team
Community Support Team

Re: Saving data from multi screen powerapp back to sharepoint list

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,546)