web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / HOW TO SAVE MULTIPLE E...
Power Apps
Unanswered

HOW TO SAVE MULTIPLE EDIT FORMS AS ONE ENTRY

(0) ShareShare
ReportReport
Posted on by 44

Hello everyone.


I have a problem with saving entries into a table.
Namely, my table  has many mandatory and optional fields, and it has a Unique ID column - which only arises after the new entry is saved in Table.

To save a new entry, in my application, I use Edit Forms, but not just one, BUT SEVERAL OF THEM arranged in different containers. Each Edit Form contains a certain number of Data Cards that must be filled in (because they are mandatory) before clicking the "Save entry" button.

Formulas such as: Submit Form(Edit Form 1); Submit Form(Edit Form 2); Submit Form(Edit Form 3); and so on are not considered because each time an attempt is made to create a new entry, which is not possible (I only fill in certain fields in each form). Also, I must keep in mind that each entry must be possible to EDIT AGAIN in the App later and save it as the same entry and not as a NEW one.

 

Any kind of help is welcome. Thank you!

Categories:
I have the same question (0)
  • iClarkSi Profile Picture
    117 on at

    Hey @stayclassy ,

     

    I hope you are well.

     

    I don't know if this works for you, but it is possible to make the field validation on the UI and not on the List.

     

    This would solve you problem of not being able to use SubmitForm() and you would still need to fill certain fields on the app in order to proceed.

  • IamnotBob Profile Picture
    51 on at

    Are you able to not use forms? Create individual fields in a container. Then use Patch() to add to the DataSource or update the DataSource as you need to with just the fields you need. 

    Patch function (contains video) - Power Platform | Microsoft Learn

     

     

     

     

  • stayclassy Profile Picture
    44 on at

    How exactly do you mean? Do you have any examples or videos?

  • Verified answer
    BhaskarDhone Profile Picture
    1,392 Super User 2025 Season 2 on at

    Try this for creating a record with multiple forms.

     

    Patch(
     'Sample Tables',
     Defaults('Sample Tables'),
     Form2.Updates,
     Form2_1.Updates,
     Form2_2.Updates
    );

     Same goes for update as well

     

    Patch(
     'Sample Tables',
     LookUp(
     'Sample Tables',
     ID = "23"
     ),
     Form2.Updates,
     Form2_1.Updates,
     Form2_2.Updates
    );
  • iClarkSi Profile Picture
    117 on at

    @stayclassy ,

     

    To make a validation through UI, you would need:

     

    1.  Make the mandatory fields become optional
    2. Create rules for each field on you powerapp through PowerFX

    About using muliple Form controls, you don't need to. You can do it like @IamnotBob said or you can actually just customize your Form control to display the fields dynamically.

     

    I cannot make an example right now, but if you don't find an answer for your issue till later today, I'll post here again.

     

    This is a really good video because he explains these both validation methods: How to validate power apps edit form before submit - YouTube

     

     

  • IamnotBob Profile Picture
    51 on at

    There are quite a few resources out there using Patch(). Just use the Patch() function to write the info you wish to save.

    7 Ways To Use The PATCH Function In Power Apps (Cheat Sheet) (matthewdevaney.com)

     

    (Shane Young) I believe this one will also show you how to get the new record added which you can save in a collection or variable for later. 
    Saving Power Apps Data with the Patch Function (youtube.com)

    (Reza Dorrani) Power Apps PATCH function Tutorial with Modern Controls (youtube.com)

    and How to use PATCH Function in Power Apps | Insert and Update data (youtube.com)

  • IamnotBob Profile Picture
    51 on at

    @BhaskarDhone this approach should work as well. Have you ever had issues with duplicate saved entries?
    Reza touches this @ about 28 minutes in (2) How to use PATCH Function in Power Apps | Insert and Update data - YouTube

  • stayclassy Profile Picture
    44 on at

    @BhaskarDhone Thank you for your help. Do you perhaps have an idea on how to obtain a Unique ID at the moment of saving a new entry for the above mentioned example (each EditForm contains mandatory fields)? The thing is, I save multiple forms as one entry using the Patch function, and afterwards (I mean by clicking), I call a Flow in which the Unique ID is a required parameter for that entry.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard