Create Ticket My Tickets Post Discussion
Login  Sign up


If you have access to technical personnel (software developers) and are looking to tightly integrate with our platform, then this Connector option is worth a look.

The REST Connector will send automatically form entry data in XML or JSON format to a web service address that you specify. This allows you to integrate with us on an event level. I.e., whenever a new Form entry is received by us, you will receive the data on the nominal REST verb - e.g., POST. Your web service should implement the API that we specify in order to understand the data we send by default.

Technical staff should see our Form Entries API documentation (found in the Integration section of our help site). Alternatively, you can define your own custom request body to match into existing APIs endpoints that you wish to send form entry data to.

Adding the Connector

The Connectors page can be accessed from your Form design, settings or from the Screens listing if you mouse over the Form row in question. Once you are in the Connectors page, setting up a REST Connector is easy:

  1. Hover over the "Add Connector" button to see a list of the available Connectors. Click the REST option.
  2. This will refresh the page and display your Connector, ready for configuration.
    • Note that at this stage nothing has been saved: you must click the Save button to save your Connector after you've finished setting it up.
  3. Specify the desired request format - for example, JSON or XML - and the desired REST verb (usually POST)
  4. If you are sending form entry data into an existing external service API, then you will need to customize the request body to match this.
    • Hit the "customize body" link to reveal a text area that you can use to define the request format, injecting your form fields using the same {{ }} syntax you would use to create a Data Template.
    • This opens up the ability to plug into almost any external service that exposes a REST API.
    • Simply read up on their API documentation about the required data structure and submission endpoints, then plug those into your REST connector url and body.
  5. You need to specify the destination URL to which our platform will POST data. You can either enter an address directly into the given field, or you can tick the "Use Global Forms REST URL" box. The Global Forms REST URL option allows you to have a single global URL that can be reused for multiple Forms. This option is configured in the Organization Setup page (Menu -> Organization Setup -> Advanced section).

  6. At this stage, your Connector is ready to go. Hit the Save button to save your changes and activate the Connector.

Customizing the Request Body

The "customize body" option allows you to set up your own custom JSON or XML data payloads and inject form answer values using our standard {{fieldname}} syntax. You can even cater for repeating data in your body by using our {{!REPEATSTART}} {{!REPEATEND}} syntax normally reserved for data templates. 

For example, you might have a JSON body that repeats timesheet rows like so:



Setting up a Dynamic Request URL

You can also inject answer values to dynamically build up the URL to which the request will be sent. So, for example, your target URL could look like:{{myfield}}/contact?option={{myoption}}

Click on the hammer next to the Desination URL box.

Adding Custom HTTP Headers

Use the "customize headers" option to add HTTP request headers onto the REST request that is sent out by the platform. This is useful for external API services that require you to authenticate using Auth headers that contain your username/password combinations. Header values can be dynamic as well: you can inject form field values using the usual {{myfieldname}} syntax.

NOTE: HTTP Headers are NOT a way to send your form field names to the target API. Research HTTP Headers to understand what these are and how to use them.

Add a Run Condition

Sometimes you may have a Connector that you only want to fire in the event that the Form entry has a given answer value. For example, you may have an Audit Form which has a risk rating question with options like "Low," "Medium" and "High." If the user answers the risk rating as "High," then you want an email to be sent to a supervisor for follow-up and action.

This is where a Run Condition comes in. Run Conditions are defined by creating a true/false formula. The Connector will only run if the formula you define in the Run Condition has a true result. So, in the example above, the Run Condition formula would be something like:

{{riskRating}} = 'High'

When you hover over the Run Condition field, you will see a hammer icon appear. Clicking the hammer will take you into the Formula Builder, which helps you to put together the formula you desire.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.