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 / Need help with updatin...
Power Automate
Answered

Need help with updating a document folder with additional attachments from a sharepoint list

(0) ShareShare
ReportReport
Posted on by 78

I have created a flow to create a folder and add attachments when a sharepoint list is created, it works great.  However, I need to have a similar flow for updating the same folder for that list item with added attachments.  Here is the flow I have but it isn't working, also it gets stuck in an infinite loop so I need help.

 

2023-11-07_17-43-36.jpg
2023-11-07_17-44-03.jpg
2023-11-07_17-44-54.jpg
Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @JenMCW ,

    I suggest you replace the 'When an item is created or modified' trigger with the 'When an item is created' trigger.

    Best Regards,

    Sunshine Gu

  • JenMCW Profile Picture
    78 on at

    Yes I have that but the problem is if another attachment is added it does not move it to the folder.  It only moves it when the item is created not updated.

  • JenMCW Profile Picture
    78 on at

    Does not update with the new attachment when I have only created.  I need to have it add the new attachment when there is an update.  I cannot get it to work without sending multiple emails and running in a loop.

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @JenMCW ,

    Yes, I did a lot of tests and tried many methods, but I found that it was an infinite loop.

    vyetonggumsft_0-1699700175829.png

     

    Best Regards,

    Sunshine Gu

  • JenMCW Profile Picture
    78 on at

    Does that mean there is no solution to stop the loop?

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @JenMCW ,

    At present, it seems to me that your 'When an item is created or modified' trigger and 'update item' control both operate on a list. When an item in the list is modified, the flow is triggered. Next One step is to update the item and trigger the flow again, which will lead to an infinite loop.

     

    Best Regards,

    Sunshine Gu

  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @JenMCW ,

    I found a solution to infinite loop:

    This is the link:Stopping Infinite Loops When Updating SharePoint List Items – Scott J Shearer – M365 and Power Platform Solutions (o365scott.blog)

    Best Regards,

    Sunshine Gu

  • JenMCW Profile Picture
    78 on at

    Thank you that worked.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard