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 / PowerApps multiple for...
Power Apps
Answered

PowerApps multiple forms, patching new item to SharePoint

(0) ShareShare
ReportReport
Posted on by 48

Hello all, I'm hoping someone can provide the miracle I need. I've tried creating this form three times and still cannot seem to patch the two forms to SharePoint. 

 

My last attempt including creating a new modern form "Basicform" , coping and created the second form "DetailsForm". 

I used the modern tablist to guide the user from the Basic form to Details Form. 

Each form includes text, choice, and people picker fields from SharePoint. 

Each form Item is set to a variable called varItem. 

The "New" form button syntax is: 

ResetForm(BasicForm);
ResetForm(DetailsForm);
NewForm(BasicForm);
Set(varItem,Defaults('Change Request'));
Set(varRecordType,"New");
Set(varOrg,true);
Navigate(BasicForm)

 

There is one "Submit" button at the bottom that shows on each screen. 

The submit button syntax is set to:

Patch('Change Request',Defaults('Change Request'), BasicForm.Updates, DetailsForm.Updates, CMForm.Updates) . Yet when I tried to submit, I receive an error stating the Patch function: The requested operation is invalid. 

 

Does anyone have any ideas what could be wrong? 

If I use form.updates in the patch function, do I still need to add all the fields between { } to make it work? 

 

I would be forever grateful for your help. 

 

 

BasicForm.png
DetailsForm.png
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,240 Most Valuable Professional on at

    Hi @sdaniel ,

    This is probably not the answer you want, but have you tried this with Classic forms ? Modern Controls are still "work in progress", although being constantly corrected/enhanced.

    If it does not work with  classic form, then there is some further investigation to be done as your code is very fundamental. I assume that the DataSource of each Form is 'Change Request'.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • CRMCrazy Profile Picture
    48 on at

    Ugh, I hope that's not the case. But I'll give it a try and get back to you. 

    Yes, your assumption regarding the DataSource is correct. 

    My code is fundamental, maybe for you, but taxing for me. 😂

  • CRMCrazy Profile Picture
    48 on at

    Thank you Warren, that worked. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard