Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

 

  • JenMCW Profile Picture
    78 on at
    Re: Need help with updating a document folder with additional attachments from a sharepoint list

    Thank you that worked.

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at
    Re: Need help with updating a document folder with additional attachments from a sharepoint list

    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

  • v-yetonggu-msft Profile Picture
    on at
    Re: Need help with updating a document folder with additional attachments from a sharepoint list

    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

  • JenMCW Profile Picture
    78 on at
    Re: Need help with updating a document folder with additional attachments from a sharepoint list

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

  • v-yetonggu-msft Profile Picture
    on at
    Re: Need help with updating a document folder with additional attachments from a sharepoint list

    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
    Re: Need help with updating a document folder with additional attachments from a sharepoint list

    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.

  • JenMCW Profile Picture
    78 on at
    Re: Need help with updating a document folder with additional attachments from a sharepoint list

    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.

  • v-yetonggu-msft Profile Picture
    on at
    Re: Need help with updating a document folder with additional attachments from a sharepoint list

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow