Table Portfolios
Description
No description available
Supported Operations
Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.| Method | Supported | Reference EndPoint |
|---|---|---|
| SELECT | get_portfolios | |
| INSERT | ||
| UPDATE | ||
| UPSERT | ||
| DELETE | ||
| LOOKUP |
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 Source
| Required Parameters | |
|---|---|
| Owner Id | Fill-in the parameter... |
| Optional Parameters | |
| Workspace Id | |
| Continue On 404 Error (When record not found) | False |
Read/write to Portfolios table using API Destination
| Required Parameters | |
|---|---|
| Owner Id | Fill-in the parameter... |
| Optional Parameters | |
| Workspace Id | |
| Continue On 404 Error (When record not found) | False |
ODBC application
Use these SQL queries in your ODBC application data source:
List portfolios by owner
<p>Returns portfolios for a specified owner (user) in the default workspace. Supply the owner's user ID. Portfolios group projects for high-level tracking and goals. You can optionally scope to a specific workspace when you have more than one.</p>
SELECT * FROM Portfolios WITH(OwnerId='1200442904128317')
List portfolios by owner and workspace
<p>Returns portfolios for a specified owner and workspace. Supply both the owner's user ID and the workspace ID. Use this when you have multiple workspaces and need portfolios scoped to a single workspace.</p>
SELECT * FROM Portfolios WITH(OwnerId='1200442904128317', WorkspaceId='1200442900140748')
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
List portfolios by owner
<p>Returns portfolios for a specified owner (user) in the default workspace. Supply the owner's user ID. Portfolios group projects for high-level tracking and goals. You can optionally scope to a specific workspace when you have more than one.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Portfolios WITH(OwnerId=''1200442904128317'')';
EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];
List portfolios by owner and workspace
<p>Returns portfolios for a specified owner and workspace. Supply both the owner's user ID and the workspace ID. Use this when you have multiple workspaces and need portfolios scoped to a single workspace.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Portfolios WITH(OwnerId=''1200442904128317'', WorkspaceId=''1200442900140748'')';
EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];