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 / SubmitForm behavior wi...
Power Apps
Unanswered

SubmitForm behavior with Sharepoint List

(0) ShareShare
ReportReport
Posted on by 168
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:
I have the same question (0)
  • MS.Ragavendar Profile Picture
    4,977 Super User 2025 Season 2 on at
     
    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?
  • NM-06090901-0 Profile Picture
    168 on at
     
    For some reason it is ok now .Maybe it was something temporarily

    Thanks for trying to help
  • NM-06090901-0 Profile Picture
    168 on at
    Unfortunately issue still there
    Any other ideas?
  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at
    Try taking out the Reset() and see if that helps.
  • NM-06090901-0 Profile Picture
    168 on at
     
    I have removed the ResetForm but
    Unfortunately the issue is still there

    Thanks for helping
  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at
    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
    168 on at
     
    Monitor shows only one patch operation
     
    but i am no sure if i can find anything in details
  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at
    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
    168 on at
     
    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?
  • Verified answer
    WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at
    If it is that important to have the information, then what you are suggesting may be the path to go.

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