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 Automate / Record a time when an ...
Power Automate
Answered

Record a time when an attachment column is modified in SharePoint List

(0) ShareShare
ReportReport
Posted on by

I have a SharePoint List where linked to PowerApps. In the list, I have a column called "Attachment Time" and "Modification Type".

 

I wanted to create a flow that runs when an attachment has been uploaded/Modified/Deleted. Once the flow is triggered, I want the "Attachment Time" Column to be updated to the modified time and the "Modification Type" to display when the action was Uploaded/Modified/Deleted.

 

If nothing was done to the list Item since the time it was created, I want the "Attachment Time" to be the "Created" column value and the "Modification Type" column to stay empty.

 

I wanted all this to be done in Power Automate but I am somehow stuck on the conditioning. It would be great if I get the solution to both columns but if not then the information to the  "Attachment Time" column would be great.

Categories:
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Balajied1999 

     

    I have designed a bit complex flow for this, but limitation is that while modifying the list item only modify the attachments not any other column

     

    Let me know if that would be fine for you ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • CU26090710-0 Profile Picture
    on at

    Did you mean that the flow only runs when the Attachments column is being modified? If Yes that would work for me.

    Thank you!

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Balajied1999 

     

    No, flow can run on all scenarios when list item is modified, but if you can restrict the list to be modfiied for the case when attachements are uploaded/modfied or deleted, then it would work 😅

     

    Let me know 

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • CU26090710-0 Profile Picture
    on at

    Hi @Nived_Nambiar ,

     

    Yes, I would love to hear the solution.

     

    Thanks

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Balajied1999 

     

    Quite Complicated design, but i will try my best so that you can understand it.

     

    Assume a list is created for this purposes/demo like below

    Nived_Nambiar_3-1692964871991.png

     

    Two columns are present here Attachment Time and Modification Type.

     

     

     

     

    This design would be assuming that

     

    1) you only make changes to attachments (uploading/deleting/modifying) to list item 

    2) Also one attachment is uploaded to every list item 

     

    Design should be like below:

     

    Let's discusss overall idea behind the design

     

    Nived_Nambiar_0-1692964544143.png

     

     

    The flow runs when a item is modfied or added and will check whether the item is created or modified by checking created date and modified date, if both are same it means item is created else item is modified, That is first step in design as shown below. Yes branch represents for created and No branch for modified ones.

     

    Nived_Nambiar_1-1692964634052.png

     

     

    Let's  discuss what happens when list item is created 

     

    Steps are below 

     

    1. Flow will check whether attachments are present in newly added list item using dynamic content variable as shown below 

    Nived_Nambiar_2-1692964758481.png

    if attachments are present, it will follow Yes Branch , else it will follow No branch

     

    Yes branch:

     

    a. Update the list item column  Attachment time to created time of list

    b. Update the list item  column Modification Type as Uploaded

     

    Nived_Nambiar_4-1692964993398.png

     

     

    No Branch: 

     

    a. Update the list item column  Attachment time to created time of list

    b. Update the list item  column Modification Type as empty

    Nived_Nambiar_5-1692965132423.png

     

     

    Let's discuss what happens when list item is modified ?

     

    It will check whether the attachments are present in modified list item

    Nived_Nambiar_6-1692965271129.png

     

    Yes Branch:

     

    a. Get list of attachments present in list item

    Nived_Nambiar_7-1692965834406.png

     

    b. Next it will check whether the ModificationType column of modified list item is null or not

    Nived_Nambiar_8-1692965895297.png

     

    if it is null , then it will update that list item Modificattion types as Uploaded and Attachment time as Modfiied time

    Nived_Nambiar_9-1692965996555.png

     

    If it is not null, then it will update the two column based on value present in modification type

     

    a. It will get file metadata so as to get last modified time of the attachment 

    Nived_Nambiar_10-1692966200207.png

     

    It will create a switch condition based on Modification Type.

     

    Case 1. If modification type is uploaded:

    Nived_Nambiar_11-1692966266688.png

     

    It will check whether the Attachment Time is not equal to Last Modified time of attachment, if yes, update the status of list item as Modifed in Modification Type as shown above

     

     

    Case 2: when modification type status is Deleted

    Nived_Nambiar_13-1692966591050.png

     

     

    Then since earlier Modification Status is Deleted and now attachments has been added, so the status of list item should be changed to uploaded, that has been done above 🙂

     

    No Branch:

     

    No Branch runs when no attachments are present 

     

    Nived_Nambiar_14-1692966727823.png

     

     

    It will check whether the ModificationType column is not equal to null of current modfiied list item, if not equal, then it means that attachments are earlier present which means attachments are present earlier or may be not present , in that case status of list item should be updated as deleted only.

     

    This is complete design of flow.

     

    Note:  Since this flow runs every time when list item is modified or created, also update item within flow would also trigger the flow again, so to make sure that flow only triggers when the attachements are updated not others, then add the condition at the below highlighte point which checks whether any columns apart from Attachments has undergone change, if yes skip this process and end it else do the update 🙂

     

    Nived_Nambiar_15-1692966999510.png

     

     

    Hope this helps !

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

     

     

     

     

     

     

  • CU26090710-0 Profile Picture
    on at

    Thank you @Nived_Nambiar !

     

    Most of this flow helped me with the problem I was facing.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard