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 / Get sharepoint item at...
Power Automate
Answered

Get sharepoint item attachment and save to folder

(0) ShareShare
ReportReport
Posted on by 6

Hi

I am building a power app with SharePoint behind it. 

The user enters SharePoint list information on a form in the power app and may add attachments. 

We want those attachments to also be saved separately to a directory folder.

While Appending to Array Variables i get an error saying Invalid Template :

The ErrorThe Error

Here's My flow : 

My FlowMy Flow

Error Part :Error Part :

FlowFlow

 

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

    Hi @gauravrt ,

     

    The logic is to get the attachment of each record in the SP list and save the file to a certain folder in the SP library, which should be done in the same apply to each. So, I don't understand why you set multiple Apply to each to accomplish these operations. Below are my test steps for you to try.

    1)

    vmengmlimsft_0-1695887063192.png

    2)

    vmengmlimsft_1-1695887127410.png

    One thing to note is that the names of all attachments in your SP list must be different, otherwise the flow will fail. After all, files with the same name and type cannot exist in the same file path. Of course, you can also determine whether the file is already in the folder before creating it.

     

    Hope this helps you!

    -----------------------------------------------------------------------------------------------------------------------------------

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

     

  • gauravrt Profile Picture
    6 on at

    @v-mengmli-msft  It worked for me. Also files reuploaded with  same name is resolved by turning off "Allow Chunking". Thanks !

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard