Uboss Scheduled Reports and Microsoft Power Automate

Prev Next

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.

Image

Go to scheduled reports in the list.

Image

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.

Image

Go to the connections menu and create a new connection.

Image

Do a search for SFTP in the top right and select SFTP - SSH from the list.

Image

Using the SFTP connection details from Uboss fill in the relevant fields. You can see an example below.

Image

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.

Image

Go to my flows in the left menu.

Image

Create a new flow and select a scheduled cloud flow.

Image

Specify the frequency and then click create.

Image

You will be presented with a blank canvas and can start creating your automation flow. Click the plus icon to add a step.

Image

Do a search for SFTP and select the option list files in folder.

Image

Ensure the connection is set accordingly.

Image

Click the folder button and then select the SFTPWithSsh folder.

Image

You'll then see the folder is specified as /

Image

Now add the next step. This time the action will be apply to each.

Image

Click the apply to each block and configure the necessary parameter.

Image

Go to the parameter option and type / and then select dynamic content.

Image

Then select the body from the previous step.

Image

Within your apply to each block add a new action.

Image

Do another search for sftp and then select get file content.

Image

Type a / and then select insert dynamic content.

Image

In the options which appear select path.

Image

Within your for each block now add another action.

Image

Do a search for create file and select the create file within the OneDrive for Business section.

Image

Browse to the folder in OneDrive where you would like the files to be created.

Image

For the file name add a / again and select dynamic content. Select the name attribute.

Image

For the file content select dynamic content again and then select the file content attribute.

Image

It should then look like below.

Image

Click save on the flow.

Image

You can now select to run the flow manually from the summary page.

Image