Active with remarks |
---|
This application needs additional settings. Please follow the documentation below to create your own connectionUnique, active service acces point to a network. There are different types of connections (API key, Oauth…). More. |
The Commcare modulesThe module is an application or tool within the Boost.space system. The entire system is built on this concept of modularity. (module - Contacts) More allow you to watch the forms, and cases in your Commcare account.
Prerequisites
-
A Commcare account
In order to use Commcare with Boost.spaceCentralization and synchronization platform, where you can organize and manage your data. More IntegratorPart of the Boost.space system, where you can create your connections and automate your processes. More, it is necessary to have a CommCare account. If you do not have one, you can create a Commcare account at dimagi.com/commcare.
Note | |
---|---|
The moduleThe module is an application or tool within the Boost.space system. The entire system is built on this concept of modularity. (module - Contacts) More dialog fields that are displayed in bold (in the Boost.space Integrator scenarioA specific connection between applications in which data can be transferred. Two types of scenarios: active/inactive. More, not in this documentation article) are mandatory! |
To connect your Commcare account to Boost.space Integrator you need to obtain the API Key from your CommCare account and insert it in the Create a connection dialog in the Boost.space Integrator module.
-
Log in to your CommCare account.
-
Click Settings (the cog-wheel) > My Account Settings > API Keys.
-
Enter a name for the API Key, select the permissions, and click Generate API Key.
-
Copy the API key to your clipboard.
-
Go to Boost.space Integrator and open the CommCare module’s Create a connection dialog.
-
In the Connection name field, enter a name for the connection.
-
In the Username field, enter your account’s username.
-
In the API Key field, enter the API details copied in step 4 and Continue.
The connection has been established.
To triggerEvery scenario has a trigger, an event that starts your scenario. A scenario must have a trigger. There can only be one trigger for each scenario. When you create a new scenario, the first module you choose is your trigger for that scenario. Create a trigger by clicking on the empty module of a newly created scenario or moving the... the watch modules, see Setting Up the CommCare Webhooks.
TriggersEvery scenario has a trigger, an event that starts your scenario. A scenario must have a trigger. There can only be one trigger for each scenario. When you create a new scenario, the first module you choose is your trigger for that scenario. Create a trigger by clicking on the empty module of a newly created scenario or moving the... when a new form is submitted.
WebhookA webhook is a way for an app to send real-time information to a specific URL in response to certain events or triggers. Name |
Enter a name for the webhook. |
Connection |
To trigger the watch modules, see Setting Up the CommCare Webhooks.
Triggers when a new case is created.
Webhook Name |
Enter a name for the webhook. |
Connection |
Triggers when a new case is created or an existing case is modified.
Webhook Name |
Enter a name for the webhook. |
Connection |
Triggers when an existing case is modified.
Webhook Name |
Enter a name for the webhook. |
Connection |
Performs an arbitrary authorized API call.
Connection |
|
URL |
Enter a path relative to For the list of available endpoints, refer to the CommCare API Documentation. |
Method |
Select the HTTP method you want to use:
|
Headers |
Enter the desired request headers. You don’t have to add authorization headers; we already did that for you. |
Query String |
Enter the request query string. |
Body |
Enter the body content for your API call. |
The following API call returns usersCan use the system on a limited basis based on the rights assigned by the admin. More of the specified project from your CommCare account:
URL: /a/telecommute/api/v0.5/web-user/
Method: GET
Matches of the search can be found in the module’s Output under Bundle > Body > objects. In our example, 1 userCan use the system on a limited basis based on the rights assigned by the admin. More details were returned:
-
Open any Watch module, establish a connection, click Save, and copy the URL address to your clipboard. Click OK and save the trigger.
-
Log in to your CommCare account. From the Dashboard, click Settings > Connection Settings > Add Connection Settings.
-
Enter the details for the connection and click Save.
Name
Enter a name for the webhook.
Address to send notifications
Enter the email address to which you want to send the trigger notifications.
URL
Enter the URL address copied in step 1.
Auth Type
Select the authentication type and enter the details:
Skip Certificate Verification
Select the checkbox to skip the certificate verification.
You have created the connection successfully.
Once you have created the webhook connection, setup the required data forwarding as mentioned here.