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 / Attachments and versio...
Power Apps
Unanswered

Attachments and versioning

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

This is a strange issue. I have a SharePoint list that has been customized with PowerApps. Versioning is turned on and a Flow is running when item is modified. The flow specifically compares versions to see if the Status field has changed. The issue is that in the PowerApp when the user attaches a document on modify, it's causing an extra version to exist. This causes the Flow not to run since it thinks the status is the same as previous version. I have recreated this issue. Is there a way to remove this phantom version? I've attached a couple of the version history. Version 3 (created version 4) is when the status changed to Completed and attachment was included. Version 5 and 6 change status, no attachments.

Capture.PNG
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,447 Most Valuable Professional on at

    Hi @Anonymous ,

    How do you normally change the status?

    Also what process does the user follow to attach a document on modify

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Edit the item - this opens the PowerApp. Attach the document in the attachment data card that is in the PowerApp. Change the status field and click Submit.

  • WarrenBelz Profile Picture
    154,447 Most Valuable Professional on at

    OK @Anonymous ,

    That is obviously the correct process for what you want.

    What is the trigger of your Flow and what does it do exactly?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The trigger is on modify so the flow does run. I'm basing it off the template "Send a push notification when a column is changed in a SharePoint list" (http request/parse json/select/condition to compare first/last versions of Status column). I use this in MANY flows and it works just fine. The problem is that it's not seeing a different status because the phantom version is being created. The flow runs on that phantom version not on the real version. So then it's comparing phantom version with real version in which case status is the same. Should be comparing real version with the actual previous version to see that status is different. It works just fine without the attachment. The real issue is why an extra version is happening when adding an attachment into powerapps and how can we fix that?

     

  • WarrenBelz Profile Picture
    154,447 Most Valuable Professional on at

    This sounds like something inherent to the PowerApps process - I will tag one of my colleagues @PowerAddict , who may have more of an oversight on the process.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Anonymous @WarrenBelz  my understanding of Attachments in SharePoint Lists is that they aren't part of the version history. This means that if you attached a doc to a list then later decide to update it / save it as a newer version the old version is lost ie a copy isn't kept. This behaviour is specific to SP List and different to Libraries - this is what I've been told by our SharePoint Developer.

     

    With this in mind maybe what's happening is that when an attachment is added it is creating a version JUST FOR THAT ATTACHMENT. Then, if a new version of this attachment is required SharePoint references that version and updates that version?

     

    You could probably test this by adding an att. to a list, noting the modification date/time of the version, copying over the top of this att. then re-check the version Date/Time. My guess is the version's date/time will update but the version number won't.

     

    As I say above, I'm not the expert here but just trying to troubleshoot a solution.

     

    As an aside, and because of this versioning issue with List attachments, our SP Dev recently changed a captured signature from an attachment in a List to JSON code in a multiline of text column, just to maintain version history.

  • WarrenBelz Profile Picture
    154,447 Most Valuable Professional on at

    Thanks @Anonymous ,

    Just spreading the tags around a bit - I am glad you had more information on it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I thought this was a PowerApps issue, but it's a SP problem. Adding an attachment creates that extra version in a regular OOTB SP list. Should I post this question somewhere else?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Anonymous 

    Maybe just think of ways to adjust your process eg after each time an attachment is added update the Status column with a simple Patch? Probably wouldn't matter if you patch the same status to the column which is already there because SP will create a new version and run your Flow regardless

  • Mpap Profile Picture
    16 on at

    Hello,

          Did you find any solution with your case? Because i have the same issue with this phantom version of the attachment without capturing the previous one from the trigger when a new item is created or modified.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard