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 / Sharepoint Flow - Crea...
Power Automate
Unanswered

Sharepoint Flow - Create a folder on FTP server

(1) ShareShare
ReportReport
Posted on by 6

 

Hi all,

 

is there a chance to create a folder on FTP server by using SharePoint Flow?

 

My current task is to copy some files from SharePoint Document Library to FTP by using Flow, this works fine. In addition I want to automatically create the same folders' structure, that I have in SP Document Library, on FTP site; I can get the path by using "Path" variable but I do not see any options how to create a folder on FTP server, any ideas?

 

Many thanks,
Andrii

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

    Hi @AndriiKa,

     

    Could you please share a screenshot of your flow’s configuration?

    Do you want to copy all files of a SharePoint library to FTP Server folder?

    Or copy the file to FTP Server folder when a file is created in SharePoint library?

    Further, do you want to automatically create the folder structure and copy the file into it? Is it true?

     

    Creating a folder action of FTP Connector is not supported in Microsoft Flow currently, but you could consider take a try with the following workaround:

    • Add a “When a file is created or modified (properties only)” trigger.
    • Add a “Get file metadata” action, File Identifier field set to Identifier dynamic content of above trigger.
    • Add a “Get file content” action, specify Site Address, File Identifier field set to Identifier dynamic content of the trigger.
    • Add a “Create file” action, Folder path set to following formula:
    /Folder path dynamic content of the trigger

     

    File name set to DisplayName dynamic content of “Get file metadata” action.

     

    File content set to File Content dynamic content of “Get file content” action.

     

    Image reference:18.JPG

     

    Best regards,

    Kris

  • AndriiKa Profile Picture
    6 on at

    Hello Kris,

     

    thank you for prompt reply!

     

    Currently I use exactly the same flow 🙂 as you showed, so I can create files on FTP in a root or chosen directory. My plan is keep the same folders structure on FTP site that I have in SP DL.

     

    Hope Microsoft will add "FTP - Create Folder" action soon 🙂

     

    Many thanks! Merry Christmas!!!

     

    BR,
    Andrii

     

     

  • Primarystorage Profile Picture
    4 on at

    I have tried coping your approche, but I get the follwing error message.

     

    "status": 404,
    "message": "A reference was made to a file or folder which does not exist.\r\nclientRequestId: 98a77416-a950-4e42-a840-8cc15def4e07",
    "source": "sftp-ne.azconn-ne.p.azurewebsites.net"
     
     
    I am using a dynamic path function, but the SFTP server doesnt create the Path automaticlly, it always says it cant find the folder. Which is true, because I was under the impression that the directory would be created.
     
    Any help would be appricated.
  • ZenTekDS Profile Picture
    4 on at

    Have same issue, can only get it working if we make the folders first which isn't a good solution for us.

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

#2
Haque Profile Picture

Haque 58

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard