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 / Problem with SharePoin...
Power Apps
Answered

Problem with SharePoint List modified by creating an item with an attachment

(0) ShareShare
ReportReport
Posted on by

I'm having an issue with a flow that I'm using which is only supposed to trigger "when an item or file is modified".

I have a Power Apps form that is linked to a SharePoint list. I have noticed that when I submit this form and create a new item in my SharePoint list I get an email from my flow that is only supposed to trigger when an item or file is modified.

I did some investigation into the issue and believe I have found the root cause.

I used Power Apps monitor to check the calls that occur when I submit this form back to the SharePoint list

 

PowerAppsMonitor.png

 

 You can see that when the form is submitted, there is a patch request that creates the item in the SharePoint list with all the data.

 

However, very quickly after there is this "createAttachment" request that the network calls.

 

AttachmentPostRequest.png

 

We can see this is a "Post" request and is posting data to the SharePoint list.

 

When I inspect the flow that has ran as a result of this I can see the created and modified times are different

 

ModifiedItem.png

 

Hence, the flow is running due to the file being "modified" even though I only just created the item entry. 

Is there a fix or this or a way to avoid the flow running when I'm just creating an entry?

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @taron_wright ,

     

    Please try:

    vbofengmsft_0-1692781622614.png

    vbofengmsft_1-1692781656975.png

     

    @greater(sub(ticks(triggerOutputs()?['body/Modified']),ticks(triggerOutputs()?['body/Created'])),20000000)

     

     

    Best Regards,

    Bof

     

     

  • taron_wright Profile Picture
    on at

    This works perfectly, thank you!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard