This article will provide instructions on how to use Uboss scheduled reports and Microsoft Power Automate to get report data into Microsoft OneDrive.
Uboss Setup
Go to reports in the left menu.
.png)
Go to scheduled reports in the list.
.png)
From there add a new scheduled report instance and ensure you select SFTP as the export choice. Uboss will then present you with SFTP connection details for where to collect your scheduled report data.
Microsoft Setup
Please create a folder in your OneDrive where the files will be stored.
Login to the Microsoft 365 control panel and find Power Automate.
.png)
Go to the connections menu and create a new connection.
.png)
Do a search for SFTP in the top right and select SFTP - SSH from the list.
.png)
Using the SFTP connection details from Uboss fill in the relevant fields. You can see an example below.
.png)
Once created I would then recommend editing the created instance and giving it a useful name.
Make sure you enter the password and disable SSH key validation when clicking save.
.png)
Go to my flows in the left menu.
.png)
Create a new flow and select a scheduled cloud flow.
.png)
Specify the frequency and then click create.
.png)
You will be presented with a blank canvas and can start creating your automation flow. Click the plus icon to add a step.
.png)
Do a search for SFTP and select the option list files in folder.
.png)
Ensure the connection is set accordingly.
.png)
Click the folder button and then select the SFTPWithSsh folder.
.png)
You'll then see the folder is specified as /
.png)
Now add the next step. This time the action will be apply to each.
.png)
Click the apply to each block and configure the necessary parameter.
.png)
Go to the parameter option and type / and then select dynamic content.
.png)
Then select the body from the previous step.
.png)
Within your apply to each block add a new action.
.png)
Do another search for sftp and then select get file content.
.png)
Type a / and then select insert dynamic content.
.png)
In the options which appear select path.
.png)
Within your for each block now add another action.
.png)
Do a search for create file and select the create file within the OneDrive for Business section.
.png)
Browse to the folder in OneDrive where you would like the files to be created.
.png)
For the file name add a / again and select dynamic content. Select the name attribute.
.png)
For the file content select dynamic content again and then select the file content attribute.
.png)
It should then look like below.
.png)
Click save on the flow.
.png)
You can now select to run the flow manually from the summary page.
.png)