I'm attempting to create a powerapp as a replacement to the default sharepoint list form. As a background, this app would have two separate screens (accessed by arrow buttons) where the user would fill out a given number of fields on each screen. The first screen's submitions would be inputed and create a new item in List X. The second screen's submition's would be inputed and create a new item in List Y. I'm trying to get it to work where I would go to add a new item in List X, the custom powerapp form would then come up, I would then fill out both screens with given information, and then press the save button, where then two sharepoint lists would be potentionally altered/updated with a new item. I'm not sure how to do that, as I attempted to go to the SharePointIntegration aspect of the powerapp and change the OnSave field to "SubmitForm(SharePointForm1) && SubmitForm(SharePointForm2)" rather than just "SubmitForm(SharePointForm1)". I realised that this probably didn't work due to the SharePointIntegration data field was only set to 'List X', but editing that field to "'List X' && 'List Y'" also came up with an error. I'm a bit lost on how to proceed from here, and I basically wanted to know whether or not its possbile to do what I'm attempting with powerapps. Again, sorry for the long question, but I wanted to provide as much detail as you may need to help. Thanks.
I don't have an answer yet to your question but I have a side question.
Do you know if there's a way to get the SharePointIntegration object into a powerapps app that doesn't contain it?
Customize List X
Add 2nd screen
Add Form to 2nd Screen, add List Y as data source
Set 2nd form mode to New, or reference the 1st form's mode
Set Sharepoint Integration OnSave property to:
If for some reason, Form1 needs to be submitted before Form2, then move RequestHide() from Form1 Onsuccess property to Form2 OnSuccess property.
Hopefully this works for you,
Chris - IW Mentor PowerApps Training
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us for the next call on June 15, 2022 at 8am PDT.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.