> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Attachment Download URL

Retrieve a download URL and a one time valid token for an attachment.

<Note>
  External Documentation

  To learn more, visit the [SAP CRM documentation](https://hub.sap.com/api/API_CV_ATTACHMENT_SRV/tryout).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description |
  | - | - |
  | Archive Document ID | The ID of the archived document that holds the attachment content. Can be obtained from `Get All Originals` action. |
  | Harmonized Document Type | The harmonized document type of the attachment. Can be obtained from `Get All Originals` action. |
  | Linked SAPObject Key | The key of the business object the attachment is linked to. |
  | Logical Document | The ID of the logical document that holds the attachment. Can be obtained from `Get All Originals` action. |
  | SAP Object Type | The SAP object type of the business object the attachment is linked to. |
  | Select | Select the fields to return. For more information refer to the [System Query Option](https://help.sap.com/doc/5890d27be418427993fafa6722cdc03b/Cloud/en-US/OdataV2.pdf#page=68). |
</div>

## Example Output

```json theme={"dark"}
{
	"d": {
		"DocumentInfoRecordDocType": "str",
		"DocumentInfoRecordDocNumber": "string",
		"DocumentInfoRecordDocVersion": "st",
		"DocumentInfoRecordDocPart": "str",
		"LogicalDocument": "string",
		"ArchiveDocumentID": "string",
		"LinkedSAPObjectKey": "string",
		"BusinessObjectTypeName": "string",
		"FileSize": "string",
		"FileName": "string",
		"MimeType": "string",
		"CheckoutUser": "string",
		"CheckoutUserFullName": "string",
		"CreatedByUser": "string",
		"CreatedByUserFullName": "string",
		"CreationDateTime": "/Date(1492098664000)/",
		"LastChangedByUser": "string",
		"LastChangedByUserFullName": "string",
		"ChangedDateTime": "/Date(1492098664000)/",
		"StorageCategory": "string",
		"ArchiveLinkRepository": "st",
		"SAPObjectType": "string",
		"SAPObjectNodeType": "string",
		"HarmonizedDocumentType": "string",
		"AttachmentDeletionIsAllowed": true,
		"AttachmentRenameIsAllowed": true,
		"URLToUploadAttachment": "string",
		"URLToReadAttachment": "string",
		"OneTimeValidTokenForAttachment": "string"
	}
}
```

## Workflow Library Example

[Get Attachment Download Url with Sap Crm and Send Results Via Email](https://library.blinkops.com/workflows/get-attachment-download-url-with-sap-crm-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-attachment-download-url-with-sap-crm-and-send-results-via-email/canvas" />
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.