Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

SubmitForm behavior with Sharepoint List

(0) ShareShare
ReportReport
Posted on by 152
Hi Community,
 
I have an edit form that when  is submitted it creates 3 different versions in version history and i want to find out whether this is by design or if i am doing something wrong
Image below of the versions created 
 
 
In this example i have only changed First Name and Full Name but for some reason it creates another version with no changes and also creates another version with just the attachment which was already in the current record since previous versions
 
This is my onselect submit button code 
 
Set(submitbuttonpressed,true);
UpdateContext({draftuser: false });
If(Form1_5.Valid,Set(Spinner,true));
SubmitForm(Form1_5);
 
 
And this is my onsuccess code
 
If(
    draftuser = false,
    Set(
        Spinner,
        false
    );
    Set(
        previousscreen,
        AllUsersScreen1_1
    );
    ResetForm(Form1_5);
    Set(
        completiongif,
        true
    ),
    Set(
        Spinner,
        false
    );
    UpdateContext({varbenef: true});
    UpdateContext({varbenefspin: true})
);
 
 
 
I also have no other flows triggering this as i checked
What could be causing the multiple version creation here?
 
Thanks in advance
Let me know if further details are required
 
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    148,598 Most Valuable Professional on at
    SubmitForm behavior with Sharepoint List
    If it is that important to have the information, then what you are suggesting may be the path to go.
  • NM-06090901-0 Profile Picture
    152 on at
    SubmitForm behavior with Sharepoint List
     
    The thing is that this is inconsistent since sometimes it creates a single version and some it creates 2 .As i am currently creating an audit app for this via a flow that uses get changes for an item(properties only)  i get empty outputs.Do you think its ideal to create a second flow that checks also -2 versions for this?
  • WarrenBelz Profile Picture
    148,598 Most Valuable Professional on at
    SubmitForm behavior with Sharepoint List
    Looking at a couple of my List/Libraries, I can see a lot of "doubles" with the second one showing no changes (as in yours). A bit of research suggests that this is more a Power Apps issue "touching" SharePoint multiple times during record manipulation and SharePoint doing exactly what it is designed to do - create a Version for each.
  • NM-06090901-0 Profile Picture
    152 on at
    SubmitForm behavior with Sharepoint List
     
    Monitor shows only one patch operation
     
    but i am no sure if i can find anything in details
  • WarrenBelz Profile Picture
    148,598 Most Valuable Professional on at
    SubmitForm behavior with Sharepoint List
    The other thing (which I should have mentioned earlier) is to open a Monitor Session and see what is actually being written to the List when you instigate the SubmitForm.
  • NM-06090901-0 Profile Picture
    152 on at
    SubmitForm behavior with Sharepoint List
     
    I have removed the ResetForm but
    Unfortunately the issue is still there

    Thanks for helping
  • WarrenBelz Profile Picture
    148,598 Most Valuable Professional on at
    SubmitForm behavior with Sharepoint List
    Try taking out the Reset() and see if that helps.
  • NM-06090901-0 Profile Picture
    152 on at
    SubmitForm behavior with Sharepoint List
    Unfortunately issue still there
    Any other ideas?
  • NM-06090901-0 Profile Picture
    152 on at
    SubmitForm behavior with Sharepoint List
     
    For some reason it is ok now .Maybe it was something temporarily

    Thanks for trying to help
  • MS.Ragavendar Profile Picture
    2,596 on at
    SubmitForm behavior with Sharepoint List
     
    I could see the submit form is used only once in the code 
     
    SubmitForm(Form1_5);
     
    Are you sure you didn't patch or form.updates any where in the form?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1