Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Save email attachments from office365 to ftp

(0) ShareShare
ReportReport
Posted on by 5

Hello All,

I am trying to get this flow to work for an import we require, I have setup an SFTP server, that bit all works fine, connecting to the SFTP server works fine too with an SFTP client, its tested and I know its working, the firewall rules are all in place as well and not part of the issue.

 

I have setup an account for the email which has been accepted fine, I am setting up the SFTP in the flow and I cannot get it to connect properly, when I do a test connection with its settings azure can be seen connecting to the SFTP 3 times in quick succession, but it then disconnects straight away each time, its then repeatedly failing with the "BadGateway" error, when I hit F12 on the browser, I can see more information showing below:-

 

GET https://europe-001.azure-apim.net/apim/ftp/shared-ftp-fca32f2d-48ad-40df-9c81-103c-e592f491/datasets/default/folders 502 (An FTP protocol violation was detected. This could be caused by an implicit TLS/SSL configuration of the FTP server that is not supported. Please try explicit TLS/SSL.)

 

I am using Bitvise SSH server for the SFTP Server and I have followed multiple settings with zero success on there now.

 

If I swap to another SFTP server product, I then get Certificate Errors of a different kind which seem to be relating to the certificate.

 

Has anyone had success in using this flow and if so can they point me in the right direction in terms of what I should be using as a server and does anyone have a guide as to how to set this up, as Google hasnt been successful helping in that so far for me?

 

Can anyone point me in the right direction relating to setup of the SFTP server, as I think thats the last hurdle that its failling on now for me ?

 

Thanks,

 

Richard

 

  • Richard_Cymru Profile Picture
    5 on at
    Re: Save email attachments from office365 to ftp

    Hello,

     

    I followed the guide and created a specific VM on azure and sorted it all out, its still doing the same and connecting but giving the badgateway error and the 502 error shown above, I can connect to the boxes fine on an SFTP client

     

    I am at a loss now how to get this working after following that guide as I want to use SFTP over non-secured and it will not connect that,

     

    Thanks,

     

    Richard

  • Richard_Cymru Profile Picture
    5 on at
    Re: Save email attachments from office365 to ftp

    Thanks Kierian, 

     

    I will give that a try and hopefully it should sort that out,

     

    Thanks,

     

    Richard

  • kierian Profile Picture
    on at
    Re: Save email attachments from office365 to ftp

    this helped before to set it up on azure 

     

    How to Setup SFTP Server 2016/2019 in Azure/AWS/GCP - Cloud Infrastructure Services

     

     

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow