cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Submit Form and Edit Form at the same time

Hi everyone! I'm currently working on an app to calibrate some detectors in our job. So the SharePoint list has every detector on the field like:

DetectorParameter 1Parameter 2Parameter 3
A123
B456
C789

Obviusly it is more complex, as Detector data includes brand columns, tag n° columns, etc. This data doesn't need to be edited at all, only the calibration columns, because we calibrate these devices periodically, so I successfully made an app which can edit every item I select modifying only the calibration columns in SharePoint as I need. But our team was thinking of making a History of the Edit form, to see past calibrations, I'm not sure If this could be done on Power Apps in some way that allows us to edit a row in our main SharePoint list while also adding a row on another SharePoint list.

 

I haven't tried anything yet, since I could only find questions about multiple submissions, not edit + submit.

 

Thanks in Advance 😁

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @Anonymous 

 

Your requirement can be accomplished in 2 ways.

 

Option 1: Using Patch command onSuccess Property of the form to create another entry on another SharePoint

 

Option 2: Using Power Automate (Automated Cloud Flow), Create New Entry whenever the entry is added or Updated

 

Please let me know any help to create a sample whichever option you prefer.


Thanks,
Stalin - Learn To Illuminate

View solution in original post

3 REPLIES 3
StalinPonnusamy
Super User
Super User

Hi @Anonymous 

 

Your requirement can be accomplished in 2 ways.

 

Option 1: Using Patch command onSuccess Property of the form to create another entry on another SharePoint

 

Option 2: Using Power Automate (Automated Cloud Flow), Create New Entry whenever the entry is added or Updated

 

Please let me know any help to create a sample whichever option you prefer.


Thanks,
Stalin - Learn To Illuminate

StalinPonnusamy
Super User
Super User

Hi @Anonymous 

 

Here ia an example for Option 1

 

In this case, I have SP List EmpDetails (Main List) and EmpDetailsBackup(History)

 

Patch(
    EmpDetailsBackup,
    Defaults(EmpDetailsBackup),
    {
        Name: NameDataCardValue.Text,
        EmpID: Value(EmpIDDataCardValue.Text),
        EmpDetailParent: {
            Id: EditForm1.LastSubmit.ID,
            Value: EditForm1.LastSubmit.Name
        }
    }
)

 

 

Reference

StalinPonnusamy_1-1643897685690.png

 

Note: EmpDetailparent is the Lookup to the parent list So that we can reference it always.

StalinPonnusamy_0-1643897826854.png


Thanks,
Stalin - Learn To Illuminate

StalinPonnusamy
Super User
Super User

Hi @Anonymous 

 

Parent entry name changed from "Anuj" to "Anuj 1"

StalinPonnusamy_1-1643898227341.png

 

Final Reference for more clarity

StalinPonnusamy_0-1643898198251.png


Thanks,
Stalin - Learn To Illuminate

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,772)