Blog Post

New REST Connector for Forms

Written by Jamie
January 15, 2015
new rest connector for forms on our mobile data collection form builder on forms2

Share:

Stay in the loop:

We’ve released an exciting upgrade to our existing HTTP REST connector that significantly increases your options for integration with your existing external systems. Before, you could only perform POST actions and any form entry data was sent in our proprietary data structure.  This is no longer the case  🙂

Customise the Request Body

You now have the ability to customise the data body that is sent by the connector, which means you can now paste in your own custom XML or JSON 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. So you can add a JSON body like this:
{
"timeEntries":
[
{{!REPEATSTART}}
{
"entryDate":"{{entryDate}}",
"startTime":""{{startTime}}",
"finishTime":""{{finishTime}}",
"timeTotal":{{timeTotal}},
"description":"{{entryDescription}}"
},
{{!REPEATEND}}
],
"entryCount":{{hiddenEntryCount}},
"headerSummary":"{{headerSummary}}",
"entrySummary":"{{entrySummary}}"
}

Build a Dynamic Request URL

You can also inject answer values into the url the request will be sent to. So for example your target url could look like: http://somewhere.com/service/{{myfield}}/contact?option={{myoption}}

Select Your REST Verb

What’s more, you can now choose the REST verb to use in the connector action.  Choose from POST, PUT, GET and DELETE options.

All these new functions open up the ability to plug directly 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. We can’t wait to see the ingenious ways this new capability is used by our clients.

Related Posts

benefits of digital forms for fleet management blog banner

Citizen Development & Low-Code/No-Code

Why Digital Forms for Fleet Management Are Better Vs Paper Forms

January 11, 2024

How To Create A Digital Form

Form Builder

From Paper To Digital – How To Create A Digital Form FAST

January 11, 2024