cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
connorjh
Frequent Visitor

Help using patch to send data to Sharepoint between multiple screens and no Form

Hi,

 

I created an app that has multiple screens and and due to some limitations I could not use a Form so I added individual inputs. I have seen a lot of posts to send data to SharePoint using patch from one screen, but I have no idea how I would do it between multiple screens. So the user would fill out the first page inputs then click next and there would be more values to fill out before hitting submit. The data would then go to SharePoint as one line item. My thought process would be to patch the first screen and at the same time pull the ID and pass it to the next screen to allow a patch to the same line item, but I am new to PowerApps so don't really know how or if this would be best practice.

 

An example I found for patching without forms:

Patch(
      'Your SP List',
      Defaults('Your SP List'),
      {
        Title: TextInput1.Text,
        Column2: TextInput2.Text,
        Column3: Dropdown1.Selected.Value,
        ...
        ...
      }
);
Reset(TextInput1);
Reset(TextInput2);
Reset(Dropdown1);
....

 

1 ACCEPTED SOLUTION

Accepted Solutions
KennyJ
Resolver II
Resolver II

Hi,

Working on the assumption you really do need to patch, then I would create a collection, use the SharePoint list as the template, and then  Patch the fields on the individual screens to the collection and then when you are ready you could patch the results from your collection to SharePoint in one go.  

View solution in original post

1 REPLY 1
KennyJ
Resolver II
Resolver II

Hi,

Working on the assumption you really do need to patch, then I would create a collection, use the SharePoint list as the template, and then  Patch the fields on the individual screens to the collection and then when you are ready you could patch the results from your collection to SharePoint in one go.  

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,766)