Available from CRM.COM R9.0.0
GET alerts/show
This method returns information related with an alert. A single alert is returned by each call
Resource URL
Parameters
Name | Type | Description | |||||||||
token | String | The token retrieved from the login method | |||||||||
alert_identifier (mandatory) | Alert Identifier | The identifier of the alert that should be returned as a result. The allowed alert Identifier fields are the following:
| |||||||||
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved alert |
number | String | The number of the retrieved alert |
life_cycle_state | String | The life cycle state of the retrieved alert which can be SUCCESSFUL or REJECTED |
type | String | The type of the retrieved alert which can be EMAIL or SMS |
entity | String | The name of the entity that was communicated through the alert. The supported entities are the following:
|
entity_id | String | The ID of the entity that was communicated through the alert |
subject | String | The subject of the retrieved alert. This is applicable only if the type is EMAIL |
content | String | The content of the retrieved alert |
recipient_email_address | String | The email address of the recipient. This is applicable only if the type is EMAIL |
recipient_phone_number | Number | The phone number of the recipient. This is applicable only if the type is SMS |
error_code | String | The code of the error that occurred while sending the alert. This is applicable only for rejected alerts |
error_description | String | The description of the error that occurred while sending the alert. This is applicable only for rejected alerts |
recipient | User Object | The recipient user of the retrieved alert |
alert_definition | Alert Definition Object | The alert definition that was used to send the alert |
workflow_rule | Workflow Rule Object | The workflow rule that triggered the alert |
log_information | Log Information Object | The log information of the retrieved alert |
Referred Objects Response Data
Examples
GET alerts/list
This method returns information related with alerts having specific attributes. Multiple alerts are returned by each call.
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
recipient_identifier (semi-optional) | Recipient Identifier | The identifier of the recipient related with the alerts that should be returned as a result. The allowed recipient identifier fields are the following:
| ||||||||||||
alert_definition_identifier (semi-optional) | Alert Definition Identifier | The identifier of the alert definition related with the alerts that should be returned as a result. The allowed alert definition identifier fields are the following:
| ||||||||||||
workflow_rule_identifier (semi-optional) | Workflow Rule Identifier | The identifier of the workflow rule that triggered the alerts that should be returned as a result. The allowed workflow rule identifier fields are the following:
| ||||||||||||
entity (semi-optional) | String | The name of the entity related with the alerts that should be returned as a result. The supported entities are the following:
| ||||||||||||
entity_id (semi-optional) | String | The ID of the entity related with the alerts that should be returned as a result | ||||||||||||
recipient_email_address (optional) | String | The email address of the recipient related with the alerts that should be returned as a result | ||||||||||||
recipient_phone_number (optional) | String | The phone number of the recipient related with the alerts that should be returned as a result | ||||||||||||
life_cycle_state (optional) | String | The life cycle state of the alerts that should be returned as a result. The supported options are SUCCESSFUL or REJECTED | ||||||||||||
created_date (optional) | Date | The created date of the alerts that should be returned as a result. | ||||||||||||
fields_set | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify at least one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved alert |
number | String | The number of the retrieved alert |
life_cycle_state | String | The life cycle state of the retrieved alert which can be SUCCESSFUL or REJECTED |
type | String | The type of the retrieved alert which can be EMAIL or SMS |
entity | String | The name of the entity that was communicated through the alert. The supported entities are the following:
|
entity_id | String | The ID of the entity that was communicated through the alert |
subject | String | The subject of the retrieved alert. This is applicable only if the type is EMAIL |
content | String | The content of the retrieved alert |
recipient_email_address | String | The email address of the recipient. This is applicable only if the type is EMAIL |
recipient_phone_number | Number | The phone number of the recipient. This is applicable only if the type is SMS |
error_code | String | The code of the error that occurred while sending the alert. This is applicable only for rejected alerts |
error_description | String | The description of the error that occurred while sending the alert. This is applicable only for rejected alerts |
recipient | User Object | The recipient user of the retrieved alert |
alert_definition | Alert Definition Object | The alert definition that was used to send the alert |
workflow_rule | Workflow Rule Object | The workflow rule that triggered the alert |
log_information | Log Information Object | The log information of the retrieved alert |
Referred Objects Response Data
Examples
POST alerts/resend
This method is used to re-send rejected alerts. This method is applicable only on rejected alerts. A single alert can be re-send through this method
Resource URL
Parameters
Name | Type | Description | ||||||||||
token | String | The token retrieved from the login method | ||||||||||
alert_identifier (mandatory) | Alert Identifier | The identifier of the alert that should be send again. The allowed alert Identifier fields are the following:
Note that only rejected alerts can be specified in this method. |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved alert |
number | String | The number of the retrieved alert |
life_cycle_state | String | The life cycle state of the retrieved alert which can be SUCCESSFUL or REJECTED |
type | String | The type of the retrieved alert which can be EMAIL or SMS |
entity | String | The name of the entity that was communicated through the alert. The supported entities are the following:
|
entity_id | String | The ID of the entity that was communicated through the alert |
subject | String | The subject of the retrieved alert. This is applicable only if the type is EMAIL |
content | String | The content of the retrieved alert |
recipient_email_address | String | The email address of the recipient. This is applicable only if the type is EMAIL |
recipient_phone_number | Number | The phone number of the recipient. This is applicable only if the type is SMS |
error_code | String | The code of the error that occurred while sending the alert. This is applicable only for rejected alerts |
error_description | String | The description of the error that occurred while sending the alert. This is applicable only for rejected alerts |
recipient | User Object | The recipient user of the retrieved alert |
alert_definition | Alert Definition Object | The alert definition that was used to send the alert |
workflow_rule | Workflow Rule Object | The workflow rule that triggered the alert |
log_information | Log Information Object | The log information of the retrieved alert |
Referred Objects Response Data
Examples
POST alerts/delete
This method is used to delete successful or rejected alerts. A single alert can be deleted through this method
Resource URL
Parameters
Name | Type | Description | ||||||||||
token | String | The token retrieved from the login method | ||||||||||
alert_identifier (mandatory) | Alert Identifier | The identifier of the alert that should be deleted. The allowed alert Identifier fields are the following:
|
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved alert |
number | String | The number of the retrieved alert |
life_cycle_state | String | The life cycle state of the retrieved alert which can be SUCCESSFUL or REJECTED |
type | String | The type of the retrieved alert which can be EMAIL or SMS |
entity | String | The name of the entity that was communicated through the alert. The supported entities are the following:
|
entity_id | String | The ID of the entity that was communicated through the alert |
subject | String | The subject of the retrieved alert. This is applicable only if the type is EMAIL |
content | String | The content of the retrieved alert |
recipient_email_address | String | The email address of the recipient. This is applicable only if the type is EMAIL |
recipient_phone_number | Number | The phone number of the recipient. This is applicable only if the type is SMS |
error_code | String | The code of the error that occurred while sending the alert. This is applicable only for rejected alerts |
error_description | String | The description of the error that occurred while sending the alert. This is applicable only for rejected alerts |
recipient | User Object | The recipient user of the retrieved alert |
alert_definition | Alert Definition Object | The alert definition that was used to send the alert |
workflow_rule | Workflow Rule Object | The workflow rule that triggered the alert |
log_information | Log Information Object | The log information of the retrieved alert |
Referred Objects Response Data