I want to transfer multiple files from multiple subfolders sftp to SharePoint Document Library using logic app - azure

The files and folders in SFTP are in format as
folder/new/demo/test/sample.csv ,
folder/new/demo/test/sample1.csv,
folder/new/demo/test1/sample3.csv ,
folder/new/demo/test/practice/sample5.csv, ... and so on,
I want to copy same structure which is in SFTP like folders inside subfolders and files to SharePoint Document Library. I have created a work flow but somehow got stuck here. I am attaching here screenshot of workflow. click here

Related

Few Files missing/Not uploaded after Sharepoint upload of entire folder structure

We tried to migrate 5GB of files from SVN to Sharepoint which has many nested folder structures. To perform this we have downloaded files from SVN and used sharepoint web portal to upload as "Folder". I have selected the root folder where it has 5GB of files. It was processed for few hours and ended without any errors. Or I dont know where I am supposed to look for errors. After folder upload when I perform random validation, found that many folders are incomplete and did not find expected files in those folders.
I have searched in internet found that below tool is available for local sharepoint to Microsoft 365. Is there any other tool or the steps to upload local files to sharepoint.
https://learn.microsoft.com/en-us/sharepointmigration/introducing-the-sharepoint-migration-tool
What we tried - We selected an entire root folder of 5 GB size which had many subfolders and files inside it to upload it to sharepoint through upload folder option.
Expected Result - All the subfolders and files inside the root folder should get uploaded on sharepoint
Actual Result - We found that some of the files and subfolders from the root folder did not get uploaded on sharepoint and the job had completed without any error being thrown or maybe I don't know where am I supposed to look for errors.
You can try File shares to Migrate your on-premises file share content to Microsoft 365.
Go to SharePoint admin center-->Migration-->File shares.
For more information, please refer to:
https://learn.microsoft.com/en-us/sharepointmigration/mm-get-started

Logic App - Copy from sharepoint to Azure BlobStorage

I am currently testing my newly created workflow. The goal is to copy the files from sharepoint to blobstorage.
It needs to check in certain intervals if something has been added or updated in sharepoint and then copy it.
For this I use 'When a file is created or modified (properties only)', followed by a couple of 'Initialize variable' to adjust path etc. and after that comes 'Get file content'. At the end 'Upload blob to storage container'.
It works fine, however it only copies the files that have been added/updated to sharepoint after workflow was created.
My question is if it is possible to copy also the files that were already in sharepoint before creating workflow.
Thanks : ))
After reproducing from my end, I could able to get this done by listing the files from required folder and creating the blob using Get file content using path. Below is the flow of my logic app.
RESULTS:

How to trigger Azure Logic App when dropping file in Sharepoint folder

I created a Logic App that uses the Sharepoint trigger "When a file is created or modified in a folder". It works perfectly when I upload a file in Sharepoint online (in a Sharepoint browser tab). But, it doesn't work when I drop a file in my synced Windows explorer folder.
I read that someone faced the same problem: https://learn.microsoft.com/en-us/answers/questions/41215/logic-app-why-does-sharepoint-file-properties-trig.html. Here it says:
Move files and flow runs When you move one or more files from one
document library to another, the original file is moved from the
source library to the destination library. Moving the file does not
alter any custom metadata, including when the file was created and
modified. Hence, this action does not trigger any flows for those file
updates associated in the library where it was moved.
Syncing files to your OneDrive for business and SharePoint document
libraries When users sync one or more files from one document library
to another, the original file is moved (synced) from your client to
the destination library. Syncing the file will not alter any custom
metadata including when the file was created and modified. Hence, this
action will not trigger any flows for those file syncs in that library
or in your OneDrive for business.
The thing is that I NEED this Logic App to run by just dropping this file in a Windows Explorer folder (which is a Sharepoint folder shared with a certain person). Do you know how can I achieve this?
It started working for me when I used the OneDrive - When a file is created Connector because we use OneDrive for Windows Explorer and need to include the folder where the trigger should be invoked. We must set Include subfolder to true if we want the trigger to be fired while adding any file to the subfolders.
Here are the screenshots of the logic app working
When adding file in subfolders
When adding file in root folder

How to provide files depending upon folder path which can be inserted dynamically

I'm creating a app, I want to get the folder path from the user which contains an html report which has some internal links to files in that folder, I want to create a node.js application which provides link to the primary htm file and then on clicking the internal links provides the other htm files, I know I can use a file server but there are going to be multiple paths not just one path so the file server cant be started in multiple folders

Force sharepoint to save files in directory

I'd like to force sharepoint to save files in directory. Is there a way to do that?
I think about this scenario: users upload files to some list / library in sharepoint and automatically or by pushing "publish" the files are copied to some local server's directory.
Edit:
In other words i would like to connect sharepoint library with physical directory in server that runs IIS, so that files uploaded to library were seen in that folder.
I'm new to sharepoint.
Are you talking about Remote BLOB Storage? I have not tried this and assume that RBS can be enabled for a Site level only and not for individual document libraries. If you want this for a particular doc library, you can write an event handler to save the uploaded documents to file system and then remove the uploaded file.
Most likely you don't want to do this. If you're doing it in order to access the files from other applications, or having them show up in a users home directory or something, you can just map the document library as a network drive/web folder.

Resources