Send attachments for Microsoft Forms

Introduction

In order to get files from RTFile Upload for microsoft forms, you need to setup two Power Automate flows per form. One for requesting a unique ID for the user to upload their files and one for pulling files sent into the system.

Requesting an upload code

The first thing you need to do is create a new flow for when a new form is submitted. within that flow you want to create a compose box and enter the example code on the right.

After this you want to send a HTTP post request to https://RTFileupload.realtech-solutions-apiload.uk/requestuid with the body being the output of your compose box. see example screenshot as shown

Responsive image

From here, you can now receive a unique code for any form that is submitted and send it in whichever way you want to. A good example of this is to send an email to the end user containing a link to the form upload with the arguements on the end of the link being ?uniquecodehere-formnamehere. please note not the include "-" in the form name as this is used to break between each parameter and %20 is used as a spacer between the name of the form.

Example Link http://rtfileupload.realtech-auto.co.uk/UploadFile.html?849201-test%20form

Example compose body

{

"uniquekey": "your product key in here",

"formname": "form name here",

"formid": "Form response ID here",

"url": "",

"max_file_sends": 10,

"store_files": "Y"

}

Receiving files stored temporarily (Recommended)

The best way to receive any files that are uploaded is to run a power automate flow every hour to receive and create a compose with the input example on the right run a http post request to the following link : https://RTFileupload.realtech-solutions-apiload.uk/getSentFiles

The reason this is the preffered method is because this allows the system to rebuild the inputted file in a test environment and scan for malicous files. and also depending on your organistion policy, you may be able to recieve the data but you may not be able to do anything with it.

Storing files also allows for managing issues you may run into when setting up your flow.

Once you confirm you have confirmed you have received and processed your files, you can then run the next http post request using the same compose output listed above to the following link: https://RTFileupload.realtech-solutions-apiload.uk/deleteSentFiles .This ensures you dont receive duplicate files.

Example compose body

{

"uniquekey": "your product key in here",

"formname": "form name here",

"url": "",

}

Receiving files instantly upon sending (Not Recommended)

Instant file receving is currently not documented due to lack of support.