GET attachments/list
Available from CRM.COM R11.0.0
This method returns the attachments related with a specific entity. Multiple attachments are returned by each call.
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
entity (mandatory) | String | The name of the entity related with the attachment. The supported entities are the following:
From CRM.COM R12.2.0, ATTACHMENTSLIBRARY is available From CRM.COM R14.0.0, COMMUNICATIONTEMPLATES is available | ||||||||||||
entity_id (mandatory on conditions) | String | The ID of the entity related with the attachment, which is mandatory only if the entity is not set to ATTACHMENTSLIBRARY For releases prior CRM.COM R12.2.0, the entity ID is mandatory From CRM.COM R12.2.0, the entity ID is mandatory on conditions | ||||||||||||
classification_identifier (mandatory on conditions) | Attachments Classification Identifier | The classification identifier of the attachment, which is mandatory only if the entity is set to ATTACHMENTSLIBRARY. The allowed classification identifier fields are the following:
Available from CRM.COM R12.2.0 | ||||||||||||
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 attachment |
entity | String | The name of the entity related with the attachment. The supported entities are the following:
From CRM.COM R12.2.0, ATTACHMENTSLIBRARY is available From CRM.COM R14.0.0, COMMUNICATIONTEMPLATES is available |
entity_id | String | The ID of the entity related with the attachment. |
url | String | The attached URL. This information is empty if the attachment is a file. |
notes | String | The comments related with the retrieved attachment |
classification | Attachments Classification Object | The classification of the attachment Available from CRM.COM R12.2.0 |
file | File Object | The information of the attached file. This information is empty if the attachment is a URL. |
log_information | Log Information Object | The log information of the retrieved attachment |
Referred Objects Response Data