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 / Office 365 E-mail with...
Power Automate
Unanswered

Office 365 E-mail with attachment -> save attachment to FTP

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am already struggling for 2 weeks with Flow to get an attachment from an Office 365 account which is received in the inbox and the attachment should be saved to an FTP server. If possible, a requirement to be honest, the name of the attachment should be changed into something unique.

 

Is this even possible? If this is possible, could someone help me to get this operational? 

Soon i will not have any hair on my head from pulling everything out of stress.

 

Thank you in advanced

Regards, Remco

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @RemcoVisscher,

     

    Do you want to save the attachment of an email to an FTP server?

     

    I have made a test on my side and please take a try with the following workaround:

    • Add a "When a new email arrives" trigger, Has Attachment field set to Yes and Include Attachments set Yes.
    • Add a "Apply to each", input parameter set to Attachments dynamic content of the trigger.
    • Within "Apply to each", add a "Compose" action, Inputs set to following formula:
    concat('.',split(items('Apply_to_each')?['Name'],'.')[1])

    Add a "Create file" action of FTP connector, specify Folder Path, File name set to following formula:9.JPGFile content field set to Content dynamic content of the trigger.

     

    Note: Within File name field of "Create file" action, type the UniqueName firstly and then type the Output dynamic content of "Compose" action, please make sure that there is no space between UniqueName and Output dynamic content when typing UniqueName and Output dynamic content. In addition, the "Compose" action would return the extension name of the attachment file of the email.

     

    Image reference:10.JPG

     

     

    Best regards,

    Kris

     

     

  • _vn_ Profile Picture
    2 on at

    hi, going trough this and when i get to "create a file" part i get ftp server connection configuration option.

    when trying to add server and save i get this error

     
    Please check your account info and/or permissions and try again. Details: An invalid request was made. Inspect the passed parameters and actions. clientRequestId: 4E1BFE9D-A05B-4F16-BD4F-088C43E0E326
     
    can you post your template somehow where i can be re-used?
     
    thanks
     

     

  • mstarace1 Profile Picture
    14 on at

    Hello.  I have successfully setup getting the attachments from an email over to FTP, but I would also like to get a copy of the actual email message that goes with it. 

     

    Is this possible to do?

     

  • knudsoda Profile Picture
    2 on at

    This works fine too!

     

    FTP.jpg

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard