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

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.

 

Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    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
    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
    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
    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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard