EMAIL - DATA SOURCE
Description
The EMAIL data source is designed to retrieve data from email attachments. This method is particularly useful for processing and analyzing data contained within email attachments, such as reports, spreadsheets, or documents. The EMAIL data source supports various configuration options to customize the data retrieval process, including specifying the email server, authentication details, and criteria for selecting specific emails and attachments.
Config
REQUIRED
Config Parameters
Name | Description |
---|---|
url | The URL of the email server or service API endpoint from which emails will be retrieved. This is a required parameter. |
method | The HTTP method (e.g., GET, POST) to use for the request. This is a required parameter. |
headers | A set of HTTP headers to include in the request, such as authentication tokens. This is an optional parameter. |
requestParams | A set of query parameters to include in the request, such as filters for selecting specific emails. This is an optional parameter. |
substitutions | A set of substitutions to apply to the request parameters, allowing for dynamic values to be inserted into the request. This is an optional parameter. |
cascadeSub | The name of the substitution to cascade through multiple pages of results. This is an optional parameter. |
cascadeMax | The maximum number of pages to cascade through when using cascading substitutions. This is an optional parameter. |
Config Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
Inline Feed Source
The Email Source can also be used inline within a dataFeed
config. The same parameter are used for the inline source. An example is given below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
Other Uses
Email data source can also be configured to read the message content of emails. In the config below, "MESSAGE_CONTENT" is used in the config fileMatch
field within config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
Common Mistakes
- Incorrect URL or Method: Ensure that the
url
andmethod
parameters are correct and correspond to a valid email server or service API endpoint. - Authentication Issues: Verify that the
headers
parameter includes the correct authentication tokens or credentials required to access the email server or service. - Incorrect Request Parameters: If you encounter issues with selecting specific emails or attachments, check the
requestParams
for any errors or missing required fields. - Substitution Errors: If the data retrieval process fails due to substitution errors, ensure that the
substitutions
are correctly defined and that the cascading parameters (cascadeSub
andcascadeMax
) are properly configured.