/data/activities/responses/batch/{batchId}
Get the status and download link of your batch activities export.
Use the appropriate regional endpoint to ensure that you comply with your organization's privacy policy, and applicable laws and regulations. For details about the available regional endpoints, and how to identify your organization's region, see API Access.
Prerequisite
Steps
Retrieve activity data from your download link by following these steps:
-
Make a GET call to obtain the download link:
https://api.{region}.alida.com/v2/applications/{communityApiKeyName}/data/activities/responses/batch/{batchId}
-
Make a GET call to retrieve activity data from the download link in the
data
field:https://api.{region}.alida.com/v2/applications/{communityApiKeyName}/data/activities/responses/files/{fileId}
- In the
Locations header, use the link to download the
export file. Skip this step if the download link is automatically redirected to
download the export file.
Note: Streaming is a recommended method to extract large quantities of data without affecting memory or performance. Use any HTTP client capable of streaming and is compatible with the language you are using.
Resource URL
/v2/applications/{communityApiKeyName}/data/activities/responses/batch/{batchId}
/v2/applications/{communityApiKeyName}/data/activities/responses/files/{fileId}
Available methods
Method | Description |
---|---|
1. GET | Get the status and download link of the batch activity data export. |
2. GET | Get the exported activity data from the download link. |
Available fields for 1. GET
Element | Description |
---|---|
createDate
|
The date and time in UTC when the export was created. |
createdBy
|
The GUID of the user who created the batch activity data export. |
data
|
The download link to the batch activity data export. |
datasetId
|
The GUID of the dataset (activity). |
id
|
The GUID of the batch activity data export. |
lastUpdateDate
|
The date and time in UTC when the export was last updated. |
message
|
This element contains any error messages. Possible values
are:
|
status
|
The current status of the export. Possible
values are:
|
Example |
---|
|
Available fields from the JSON file
Element | Description |
---|---|
datasetId
|
The GUID of the dataset (activity). |
definition
|
Activity fields and field groups in the dataset. |
exportDate
|
The date and time when the export was started. |
exportOptions
|
Export parameters specified. Possible values
are:
Note: Activities exported can fall slightly outside of the
date-time specified in
sinceDatetime and
untilDatetime because data is filtered using
the
lastSyncDate of the activity.
|
id
|
GUID of the
|
lastSyncDate
|
The date and time when activity values were last synced. |
records
|
A list of participant responses. |
Element | Description |
---|---|
dataType
|
The type of data answer values are stored as.
Possible values are:
This element can be found under the property container
|
description
|
The question text of a survey question. |
id
|
The field's GUID. |
isRequired
|
This element is returned as
true if the question was specified as required
during survey authoring. Otherwise, it is omitted.
This element can be found under the property container
|
isSensitive
|
The value determines whether the field
contains sensitive data. Possible values are:
|
isSystem
|
The value determines whether it is a system
question. Possible values are:
This element can be found under the property container
|
name
|
The name of the survey question.
Note: The survey question name is appended if it is one of the
following question types:
For more information, see Extract Activities. |
values
|
The options of a survey question.
Note:
values are only applicable to
enum and
set data types.
This element can be found under the property container
|
visibility
|
The visibility setting of the question.
Possible values are:
This element can be found under the property container
|
Element | Description |
---|---|
description
|
The question text of a survey question.
This element can be found under the property container
|
fieldIds
|
The list of field IDs included in the fieldgroup |
id
|
The field group's GUID. |
name
|
The name of the survey question associated with the field group. |
Element | Description |
---|---|
fields
|
|
lastUpdateDate
|
The date and time in UTC when the activity record was last updated. |
ownerId
|
The GUID of the participant, otherwise known as the
memberId .
|
Example |
---|
A response payload for a Single Choice Grid question with three rows and four answer option columns:
|
Why certain responses are not recorded?
records
attribute, responses:
- Are recorded as
null
when a participant skips a question in the survey by clicking Skip. - Are not recorded when a question is skipped because of survey logic or the participant drops off before answering the question.
Example |
---|
A survey with five questions is distributed. Depending on the
participant's responses, the
In this example, a participant decides to answer questions 1-2, skips question 3 by clicking Skip and then drops off the survey before question 4. They will see something similar to:
|