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 / File type changed afte...
Power Automate
Unanswered

File type changed after automated incoming email attachment to share point folder

(0) ShareShare
ReportReport
Posted on by

Hi

I have previously created flows that takes the attachment from an incoming email and moves it to a share drive folder using apply to each > create file. 

 

The files were successfully saved to the share drive folder but it reads "excel cannot open the file "....xlsm" because the file format of file extension is not valid. "

File Type.JPG


I can successfully open the xlsm file from the email attachment. but after the automate flow, I can't open the file from the share drive folder. 

File type 2.JPG

Any help much appreciated!

Learner

File Type.JPG
File type 2.JPG
Categories:
I have the same question (0)
  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @LearnAutomate ,

     

     

    "Attachments" is an array of all attachments in email, so we should use "Get attachment" to 

    get name and content of each attachment firstly.

    vzhoqianmsft_0-1684389694538.png

     

     

     

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

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 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard