# Import Attachments to Azure DevOps

**URL:** <https://connective.celigo.com/t/import-attachments-to-azure-devops/4526>\
**Category:** Integrator.io\
**Tags:** http\
**Created:** [May 12, 2025, 9:52pm UTC](https://connective.celigo.com/t/import-attachments-to-azure-devops/4526 "2025-05-12T21:52:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alandepew](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/alandepew/32/7274_2.png) [@alandepew](https://connective.celigo.com/u/alandepew)\
**Post date:** [May 12, 2025, 9:52pm UTC](https://connective.celigo.com/t/import-attachments-to-azure-devops/4526/1 "2025-05-12T21:52:56Z")

</div>

Has anyone worked with the Azure DevOps API before? Trying to figure out how to import attachments using their REST API. ([Attachments - Create - REST API (Azure DevOps Work Item Tracking) | Microsoft Learn](https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/attachments/create?view=azure-devops-rest-6.0&tabs=HTTP))

From my research it appears to want a Base64 string which doesn't currently appear to be natively supported by Celigo.

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [May 13, 2025, 1:26am UTC](https://connective.celigo.com/t/import-attachments-to-azure-devops/4526/2 "2025-05-13T01:26:47Z")

</div>

This part can definitely be confusing — when you choose the Azure DevOps connector, there’s no option for "Transfer files into destination application," which is required for handling attachments. We need to add those file upload endpoints to our metadata model (I created an internal ticket for that).

In the meantime, there’s a workaround:

1. Choose the **HTTP** connector
2. Select **"Transfer files into destination application"**
3. Then choose your **Azure DevOps** connection

Set the relative URI to something like:

```txt
/{organization}/{project}/_apis/wit/attachments?uploadType=Simple&fileName=imageAsFileAttachment.png&api-version=6.0

```

Set the request media type to **Octet stream**. In the **Advanced** section, set the path to your file’s blob key. If you're pulling the file from a lookup or somewhere other than the default file input, make sure to reference the correct key name (e.g., `blobKey`, or whatever field holds the file).

I haven’t tested this myself yet, but based on the Azure DevOps docs you linked, this should work with raw binary and doesn’t require Base64 encoding.

Let me know how it goes!

 ![The image shows a form for setting up a destination or lookup, including fields for application type, flow step type, description, and name of the flow step. (Captioned by AI)](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/0/09220bf7ac12f6f1ffe037d9d9ece936562f6842.png)  
 ![The image shows a software interface for creating an import, with options to name the import, add a description, choose a connection such as "Azure DevOps," and preview or send the request. (Captioned by AI)](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/d/d136b87e260d3fdb8de799482da7f27c8e5e2312.png)  
 ![The image shows a web interface for creating an import on Azure DevOps with an offline connection status and options to name the import, provide a description, and preview or send the request. (Captioned by AI)](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/7/7124a61a6d182f5d17270a6fba07469b60254cdc.png)  
 ![The image shows a user interface for configuring an HTTP file transfer, including options for method, URL, headers, and request body. (Captioned by AI)](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/6/60f43eebd2d3a5302d579b81d98ca83ec2ba2f8b.png)  
 ![The image shows a user interface for creating a transfer with fields for configuring API headers, media type, HTTP request body, character encoding, and advanced options such as blob key path. (Captioned by AI)](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/6/69e82d962c0a7b598217f587badf361bc200e4d5.png)

---

<div class="post-metadata">

**Author:** ![alandepew](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/alandepew/32/7274_2.png) [@alandepew](https://connective.celigo.com/u/alandepew)\
**Post date:** [May 15, 2025, 3:57pm UTC](https://connective.celigo.com/t/import-attachments-to-azure-devops/4526/3 "2025-05-15T15:57:13Z")

</div>

Thanks Tyler, this worked like a charm.
