Skip to main content
Community site session details

Community site session details

Session Id : yyYTsqt6mezgf/MxSLHBwM
Power Automate - Building Flows
Unanswered

adding an attachment to a list item

Like (0) ShareShare
ReportReport
Posted on 15 Mar 2023 15:25:57 by 32

I have  a list and everytime a specific value is changed to a specific value in that list, the power automate should add an attachment (Template) to that item. For testing I just picked a random file from the sharepoint, but later it should be a word template.

 

peter12345_0-1678893649075.png

The flows runs only once...after that I get this failure:

peter12345_1-1678893843424.png

Would be great if anybody could help me. 

 

 

 

 

  • Expiscornovus Profile Picture
    32,182 Most Valuable Professional on 15 Mar 2023 at 17:16:45
    Re: adding an attachment to a list item

    Hi @peter12345,


    As far as I am aware a file name of the attached file needs to be unique. If you want to attach the same file a second time you will need to give it a unique name.

     

    If your try to attach the same file multiple times via the add attachments button in the interface I am pretty sure that won't work either 😉

     

    Try to make the File Name unique by adding for example a date time stamp in the name.

     

    Below is an example

     

    Report_@{utcNow('yyyyMMddHHmmss')}_@{triggerOutputs()?['body/Title']}_@{triggerOutputs()?['body/{Name}']}

     

    uniquefilename.png

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!