Endpoint Download Attachment
Name
download_attachment
Description
Download a specific attachment by Id.
Parameters
| Parameter | Required | Options | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Name:
Label: Attachment ID The attachment Id for the attachment to get. |
YES | |||||||||||||||||||||||||||
|
Name:
Label: Fields |
|
Output Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
|---|---|---|---|---|
| Id |
DT_WSTR
|
nvarchar(50)
|
50 | |
| StatusCode |
DT_I4
|
int
|
||
| Name |
DT_WSTR
|
nvarchar(255)
|
255 | |
| Path |
DT_WSTR
|
nvarchar(4000)
|
4000 | |
| ResourceSubtype |
DT_WSTR
|
nvarchar(50)
|
50 | |
| ConnectedToApp |
DT_BOOL
|
bit
|
||
| CreatedAt |
DT_DBTIMESTAMP
|
datetime
|
||
| DownloadUrl |
DT_WSTR
|
nvarchar(500)
|
500 | |
| Host |
DT_WSTR
|
nvarchar(50)
|
50 | |
| ParentId |
DT_WSTR
|
nvarchar(50)
|
50 | |
| ParentName |
DT_WSTR
|
nvarchar(255)
|
255 | |
| ParentResourceSubtype |
DT_WSTR
|
nvarchar(50)
|
50 | |
| PermanentUrl |
DT_WSTR
|
nvarchar(500)
|
500 | |
| Size |
DT_I4
|
int
|
||
| ViewUrl |
DT_WSTR
|
nvarchar(500)
|
500 |
If the column you are looking for is missing, consider customizing Asana Connector.
Input Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Examples
SSIS
Use Asana Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
API Source - Asana
Read and write data related to Tasks, Projects, Workspaces, Portfolios, TimeEntries, Memberships and more.
Asana
Download Attachment
| Required Parameters | |
|---|---|
| Attachment ID | Fill-in the parameter... |
| FileOverwriteMode | Fill-in the parameter... |
| TargetFilePath | Fill-in the parameter... |
| Optional Parameters | |
| Fields | |
| Continue On 404 Error (When record not found) | False |
API Destination
API Destination - Asana
Read and write data related to Tasks, Projects, Workspaces, Portfolios, TimeEntries, Memberships and more.
Asana
Download Attachment
| Required Parameters | |
|---|---|
| Attachment ID | Fill-in the parameter... |
| FileOverwriteMode | Fill-in the parameter... |
| TargetFilePath | Fill-in the parameter... |
| Optional Parameters | |
| Fields | |
| Continue On 404 Error (When record not found) | False |
ODBC application
Use these SQL queries in your ODBC application data source:
Download Attachment to Local Disk
Download Attachment to Local Disk File.
SELECT * FROM download_attachment
WITH (
AttachmentId='1208216218258030'
, TargetFilePath='c:\temp\1208216218258030_AWS-refund-request.png'
, FileOverwriteMode=0 --0=AlwaysOverwrite, 1=FailIfExists, 2=SkipIfExists
)
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Download Attachment to Local Disk
Download Attachment to Local Disk File.
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM download_attachment
WITH (
AttachmentId=''1208216218258030''
, TargetFilePath=''c:\temp\1208216218258030_AWS-refund-request.png''
, FileOverwriteMode=0 --0=AlwaysOverwrite, 1=FailIfExists, 2=SkipIfExists
)';
EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];