Emails
under Feature Selection
.
enumerator_id
matching the
enumerator IDs in the enumerators dataset. This column is used to filter
the data for each surveyor.Edit column configuration
feature in Assignments.View Delivery Report
button next to the schedule name on the Emails home page:
Team member(s) to receive email delivery report
field during the email configuration step:
Configure Emails
button to add a new email configuration.
Input | Description |
---|---|
SCTO form ID | Select the SurveyCTO main form ID from the dropdown. |
Configuration Name | Unique identifier for the email configuration. E.g. assignments , data quality report etc. This value is used throughout the web app to identify the configuration. It can also be included in the email subject/content, if required. |
Team member(s) to receive email delivery report | Select required users from the list of users added in User and Role Management module. An email delivery report with the list of surveyors who successfully received the email is sent to these users after every scheduled slot. |
Team member(s) to be copied on the emails sent | (Optional) Select required users from the list of users added in User and Role Management module. These users will be CC’d on every email sent to the surveyors. |
Source of data for the email | Select the source of data for the emails. This can be either a Google Sheet or SurveyStream Data. |
Send PDF attachment | Whether the email data should also be sent as a PDF attachment. This is helpful for e.g, when data collection is happening in a location with limited internet connectivity and surveyors need to download the assignment details before heading out. |
Google Sheet
, provide the following additional inputs:
Input | Description |
---|---|
Link to Google Sheet | The URL for the Google Sheet. |
Google Sheet Tab | The name of the tab on Google Sheet containing the data. |
Header Row | The row number of the row containing column names. |
Load Google Sheet headers
to test the connection and load column names from the sheet. These column names will be required in the next step when configuring the content of the email.
Send PDF attachment
option is selected, provide the following additional inputs:
Input | Description |
---|---|
Encrypt the PDF attachment | Whether or not to encrypt the PDF attachment. If the attachment has PII data, encryption is recommended. |
Password type for encryption | Type of password to be used. Two options are provided: 1. A fixed pattern enum_id@enum_name which is different for each enumerator and 2. a constant passphrase decided by the project team. If passphrase is selected, kindly share it with surveystream.devs@idinsight.org via Flowcrypt/ Nordpass. |
Continue
to proceed to the next step.
Input | Description |
---|---|
Language | Select language from a dropdown consisting of all languages in the enumerators data uploaded in Enumerators module. |
Subject | Subject of the email like “ADP 2.0 Agriculture Daily Assignments” |
Content | The content of the email. |
Insert in Subject
or Insert in Content
button to add it to the email subject or content respectively.
The variables dropdown includes:
List of aggregate functions
dropdown. For example, to include the count of surveyors in the email, use COUNT function with the Surveyor ID variable.
{{variable_name}}
but when the email is sent, they are replaced with the actual values.Also, typing in a variable name with {{
and }}
is not allowed. You need to select the variable from the dropdown and add them using the Insert in Subject
or Insert in Content
buttons.Insert table
button allows you to insert a table with data from the Google Sheet loaded in the previous step or from a SurveyStream table.
The following configuration options are available when adding a table:
Display Name
field.Total Attempts is smaller than 3
.Total Attempts
column and select the Ascending
option.Add another language
buttons in the bottom to add more languages.
Add another language with current fields
option to copy the current email template as a starting point for the new language configuration. This is useful if the email content is similar across languages.Input | Description |
---|---|
Schedule Name | Unique identifier for the schedule. E.g. daily , weekly etc. |
Dates | The list of dates on which the email should be sent. |
Time | The time at which the email should be sent. This is in the survey timezone. Email times are restricted to 0th and 30th minute of an hour. |
Add filters for schedule
button to add filters on the data to be sent in the email which are specific to the schedule. For example, to send only targets with 0 attempts on a Monday of each week, you can create a schedule for Mondays and add a filter for Total Attempts = 0.
Edit Config
button next to the configuration name. This will open a drawer with the config details to edit.
Delete Config
button next to the configuration name.
Edit Schedule
button next to the schedule name.
This will open a drawer with the schedule details to edit. You can also update/add filters for the schedule in this step.
Delete Schedule
button on the Emails home page.
View Delivery Report
button next to the schedule name. This will open a popup with the status of emails sent. This can be used to check if a specific surveyor received the email or not and error messages, if any. In case of failures, kindly reach out to the SurveyStream team for assistance if the error message is not clear.
Email Templates
tab on the Emails home page. It shows a table with a list of templates created for each language and each configuration in Step 2.
Edit
button next to the template you want to edit. This will open a drawer with all the details of the template - subject, body and options to add variables and tables.
You can also delete a template by clicking on the Delete
button.
Manual Triggers
tab on the Emails home page.
It shows a table with the list of all manual triggers created. To create a new manual trigger, click on the Create Manual Email Trigger
button. This will open a popup where you can provide the following details:
Input | Description |
---|---|
Email Config | Select the email configuration to be used for the manual trigger. |
Date | The date on which the email should be sent. |
Time | The time at which the email should be sent. This is in the survey timezone. |
Recipients | The list of surveyors to whom the email should be sent from a dropdown. |