Get Portfolios
Name
get_portfolios
Description
Related Tables
Parameters
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
Name |
DT_WSTR
|
nvarchar(255)
|
255 | False |
|
Color |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
CreatedAt |
DT_DBTIMESTAMP
|
datetime
|
False |
||
CreatedById |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
CreatedByName |
DT_WSTR
|
nvarchar(255)
|
255 | False |
|
CustomFieldSettings |
DT_NTEXT
|
nvarchar(MAX)
|
False |
||
CurrentStatusUpdateId |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
CurrentStatusUpdateTitle |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
CurrentStatusUpdateResourceSubtype |
DT_WSTR
|
nvarchar(100)
|
100 | False |
|
DueOn |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
CustomFields |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
Members |
DT_WSTR
|
nvarchar(500)
|
500 | False |
|
OwnerId |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
OwnerName |
DT_WSTR
|
nvarchar(255)
|
255 | False |
|
StartOn |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
WorkspaceId |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
WorkspaceName |
DT_WSTR
|
nvarchar(255)
|
255 | False |
|
PermalinkUrl |
DT_WSTR
|
nvarchar(500)
|
500 | False |
|
Public |
DT_BOOL
|
bit
|
False |
||
DefaultAccessLevel |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
PrivacySetting |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
ProjectTemplates |
DT_WSTR
|
nvarchar(500)
|
500 | False |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | 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 component to read data or in API Destination component to read/write data:
Read from Portfolios table using API Destination
This Endpoint belongs to Portfolios table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

ODBC application
Use these SQL queries in your ODBC application data source:
Get portfolios
SELECT * FROM get_portfolios
WITH
(
"OwnerId" = 'abcd-1234-ownerid'
)
Read Portfolios for a specified Owner
Read Portfolios for a specified Owner (Default Workspace).
SELECT * FROM Portfolios WITH(OwnerId='1200442904128317')
Read Portfolios for a specified Owner and Workspace
Read Portfolios for a specified Owner Id and Workspace id.
SELECT * FROM Portfolios WITH(OwnerId='1200442904128317', WorkspaceId='1200442900140748')
get_portfolios
endpoint belongs to
Portfolios
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Get portfolios
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_portfolios
WITH
(
"OwnerId" = ''abcd-1234-ownerid''
)';
EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];
Read Portfolios for a specified Owner
Read Portfolios for a specified Owner (Default Workspace).
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Portfolios WITH(OwnerId=''1200442904128317'')';
EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];
Read Portfolios for a specified Owner and Workspace
Read Portfolios for a specified Owner Id and Workspace id.
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Portfolios WITH(OwnerId=''1200442904128317'', WorkspaceId=''1200442900140748'')';
EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];
get_portfolios
endpoint belongs to
Portfolios
table(s), and can therefore be used via those table(s).