Power Automate

Power Automate allows you to connect your OneBlink forms and integrate them with many third party systems, allowing you to create workflows with your submission data.


You can implement multi-stage workflows where different logic or integrations are applied, depending on your form data. For example, you may want to pass some of your form data to Sharepoint or Salesforce, or save data to your database, or even send image data to Azure Blob store.


To get started, simply select the OneBlink connector from the available integrations.


Getting Started

To use the OneBlink connector, you’ll need a premium Power Automate account — you may find you already have a licence with your Office 365 account, or if not you can sign up for a trial or paid account from their site:


https://flow.microsoft.com/


Once you have your account, you’ll be able to find the OneBlink connector in the Power Automate connector list.


To use the connector, you’ll need your API key from the OneBlink Console.



Getting Your API Key

Your API Key is available from within your OneBlink Console:


https://console.oneblink.io/


In the Advanced section, select Developer Keys. This page shows you all the API keys you have available to you.


If you don’t yet have a Forms API key, simply add a new one by selecting the Plus button in the bottom right of the screen. When creating a new key, give it a name that makes sense to you, and then select the Forms permission.


You should now see a card with your Forms API keys listed, including your Power Automate API Key. You’ll need this when you first set up your OneBlink connector in Power Automate.





Creating a OneBlink Flow

If you haven’t used Power Automate before, the best place to get started is to log into your Power Automate account, and select Learn from the side menu. Microsoft have created a lot of great tutorials from beginners to advanced.


Once you’re familiar with Power Automate, there are a couple of pointers below that will help you get up and running as quickly as possible:


Create a trigger

Select the trigger that runs when a form is submitted, “Triggers when a OneBlink Form submission occurs”. This is the trigger that will start your flow.


The first time you select the OneBlink connector, you’ll be asked to enter the name of your connection (this can be anything), as well as enter the API Key from the OneBlink Console.


Trigger conditions

You are also able to edit the OneBlink trigger to be conditionally triggered by going into the settings:



and by adding in a trigger condition:


For example, if you have 1 flow setup for 1 specific form, you can set the trigger condition to be the form Id:


@equals(triggerBody()?['formId'],<formId>)

replace <formId> with the Id of the form that you wish to use with your flow.


Add an Action

Generate Form Submission PDF

This trigger will allow you to generate a PDF of the submission data similar to the Email + PDF submission event. 

This PDF can then be added to other connectors. This action can optionally include or exclude the submission ID in the PDF. 



Retrieve Form Submission Data

The trigger doesn’t contain all of your form data. To get the data your user has submitted, you can use the “Retrieve Form Submission Data” action.


This action will bring back an object containing both the form definition and the submission data, allowing you to build out your flow from there.




Retrieve Form Submission Attachment

This action allows you to retrieve any attachments from the form submission (Camera, Files, Signature, Checklist-Files), and pass them into your flow. This will require getting the element's attachment ID, this can be obtained using the Parse JSON connector, see below.



Parse JSON

The next stage of the flow is completely up to you, however in most cases you will probably want to use the Parse JSON connector to take your data and turn them into dynamic values you can use in further flows.


In order to parse the JSON value, you will need access to the form JSON Schema. 


The easiest way to get the JSON schema is to navigate to the forms menu and select the side menu of the form. This will give you the option to “View Schema”.


From here, you can copy the schema to your clipboard and paste it in the Parse JSON connector. See below: 


The Content for the Parse JSON connector will need to be 'Submission Data'.


Get Help

If you require assistance setting up your Power Automate integration or have questions, please create a support ticket or reach out to us at support@oneblink.io.