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 / No file extension when...
Power Automate
Unanswered

No file extension when file is created in SP library.

(0) ShareShare
ReportReport
Posted on by 20

Hi All, 

 

I created a flow that copies the attachments from a SharePoint List to a SharePoint Library when a new item is created (When a new item is created>Get attachments>Apply to Each>Get attachment content>Create File). When a Word document is attached to a new item on the list, it is copied to the library, but it has no file type and will not open. However, when a pdf file is attached, it is copied WITH the file extension and opens correctly. Does anyone know how to fix this so that the Word document is saved with the file extension?

 

Thank you!

Categories:
I have the same question (0)
  • mahoneypat Profile Picture
    1,720 on at

    You need to include the file extension in the Create File action (e.g., ".docx").  If that is variable, you may be able to pull the extension from the DisplayName property as described in this previous post.

    Create a file with attachment extension - Power Platform Community (microsoft.com)

    Regards,

    Pat

  • jfloresuh Profile Picture
    20 on at

    Thank you for the suggestion, but that doesn't work for me. I would need it to pull the file extension from the attached file since they will not all be the same, but I don't see anywhere to pull the file extension from the DisplayName property. 

     

    As a note, the file name is currently set as the DisplayName property and when you upload a pdf, the name of the file created includes the file extension. I do not understand why it is not the same for a word doc.

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
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard