cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Primarystorage
Level: Powered On

Create Folder in SFTP to Place File

I am extracting email attachments from a shared mailbox. The attachments are than supposed to be stored on my SFTP server for further processing.

 

The files are supposed to be loaded in a folder that has the name of the "send to" email address.

 

The Folder Path referencing "to" doesnt exist on my SFTP server, i want the flow to create this folder path.

 

When I run the flow it states, "Folder Path not Found" which is correct, as I want the Flow to create the folder with the name dynamic name of "to" the recivers emails.

 

How can I create the folder with the name "to" so that my files can be placed there?

 

Pic1.pngPic2.png 

3 REPLIES 3
Community Support Team
Community Support Team

Re: Create Folder in SFTP to Place File

Hi @Primarystorage ,

 

Do you want to save the attachments to a corresponding SFTP folder?

 

I don't have a SFTP server, so I have made a similar test using OneDrive for Business, please check the following flow for a reference:

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Primarystorage
Level: Powered On

Re: Create Folder in SFTP to Place File

Hello Mabel,

Thank you very much for that, I know on OneDrive the Directory gets created automatically if it doesn’t exist. On the SFTP Server on the other hand it creates an error message that the folder path which was referenced doesn’t exist.

Community Support Team
Community Support Team

Re: Create Folder in SFTP to Place File

Hi @Primarystorage ,

 

Without using a dynamic content in the Folder path field, are you able to save the file to SFTP sub-folder successfully?

Please share more details on the error message. A screenshot would be great.

Please also share a URL of the flow.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,847)