Table of Contents | ||||
---|---|---|---|---|
|
You can send the response of your API request by email. To do it, you must include the destination
object in your request and set type
to email like this:
Code Block |
---|
"destination": { "type":"email" } |
...
With the destination.type
set to email
, you need to specify some additional parameters to indicate the email address and other settings:
Parameter | Description |
---|---|
| Email address to which send the query results. It must be the address of a user in the domain. |
| Specify the subject of the email. |
email.maxNum | Add this parameter to set the maximum number of response emails that can be sent. If you don't add it, set it to 0 or to a negative number, you will get unlimited emails. |
| Maximum retention file size in kilobytes. If you don't add this parameter, the default retention size is 5MB. |
| Maximum retention time in seconds. If you don't add this parameter, the default retention time is 15 mins. |
| Indicate the format of the file sent. You can choose |
| Add a password for the compressed file. This is only valid for |
Query using LINQ and forwarding to email
...
The following table describes the possible errors you may get with your response:
Error code | Message | Description |
---|---|---|
213 | QUERY_EMAIL_BAD_SUBJECT | The email subject is not a string or is empty |
214 | QUERY_EMAIL_BAD_PARAMS_GZIP_PWD | Cannot specify a password if you select the format |
215 | QUERY_EMAIL_BAD_PARAMS_FORMAT | File compression format must |
216 | QUERY_EMAIL_NO_PARAMS | You must add at least the |
217 | QUERY_EMAIL_BAD_EMAIL_TO | Invalid email address |
218 | QUERY_EMAIL_NO_DOMAIN_EMAIL_TO | The email address is not registered in the domain |
219 | QUERY_EMAIL_BAD_SIZE_RETENTION | Wrong retention file size |
220 | QUERY_EMAIL_BAD_TIME_RETENTION | Wrong retention time |
221 | QUERY_EMAIL_BAD_FORMAT_PWD | Wrong password format |
222 | QUERY_EMAIL_DISABLED | The email address was disabled. Contact Devo for more details |
223 | QUERY_EMAIL_CREATE_FILE | The temporal file to be sent cannot be created |
228 | QUERY_EMAIL_BAD_PARAMS_PLAIN_PWD | Cannot specify a password if you select the format |
229 | QUERY_EMAIL_NO_EMAIL_TO | Email address not found |