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 / Attaching file to shar...
Power Automate
Unanswered

Attaching file to sharepoint list entry, file type issue

(2) ShareShare
ReportReport
Posted on by 2

Hope someone can help, I've come at this multiple ways today!

 

I want to take an excel file from a sharepoint library and add a copy to a sharepoint list entry. I can get the file attached ok, but the file type doesn't come through as xls so cannot be opened.

I tried renaming the file to remove special characters, I tried copying the file in the workflow and attaching the copy, and I tried linking the file using OneDrive for Business instead of sharepoint. But all roads lead to this file type which won't allow me to view it.

 

Trigger: When an item is created or modified

Action: Get file content using file path

lizstimo_0-1721060041832.png

Action: Add Attachment

lizstimo_2-1721060096409.png

Outcome:

Shows OK in the list entry

lizstimo_4-1721060384013.png

But downloads as "File" not "Excel"

 

lizstimo_3-1721060123396.png

Outputs from Get file content:

lizstimo_5-1721060496044.png

 

Categories:
I have the same question (0)
  • sandeepstw Profile Picture
    on at

    Hi @lizstimo ,

     

    Use Trigger - "When an item is created or modified" (SharePoint).


    and Action - "Get file content using path" from SharePoint.
    add Path to the Excel file in the SharePoint library.
    to add attachment use Action "Add attachment"
    from SharePoint site URL.

    in file name: "yourfilename".xlsx
    in file "File Content" output from "Get file content using path"

    Ensure the file extension is correctly set to .xlsx in the "Add attachment" action.

     

    Mark as solution if it helps. 

     

    Thanks,

    Sandeep Mishra

  • lizstimo Profile Picture
    2 on at

    Oh no! That is so obvious 🙂 thank you

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard