Reference

Table Goals


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_goals
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 Goals table using API Source

API Source - Asana
Read and write Asana data effortlessly. Integrate, manage, and automate tasks, projects, workspaces, and time entries — almost no coding required.
Asana
Goals
Optional Parameters
Workspace Id
Project Id
Portfolio Id
Team Id
Is Workspace Level
Time Periods (e.g. Id1,Id2)
Continue On 404 Error (When record not found) False
SSIS API Source - Read from table or endpoint

Read/write to Goals table using API Destination

API Destination - Asana
Read and write Asana data effortlessly. Integrate, manage, and automate tasks, projects, workspaces, and time entries — almost no coding required.
Asana
Goals
Select
Optional Parameters
Workspace Id
Project Id
Portfolio Id
Team Id
Is Workspace Level
Time Periods (e.g. Id1,Id2)
Continue On 404 Error (When record not found) False
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

List project goals

<p>Returns goals for a specific project. Supply the project ID. You can also filter goals by workspace, portfolio, or team when you want goals at different levels, and optionally narrow by workspace-level flag or time periods.</p>

SELECT * FROM Goals WITH(Project='1206673375982078')

List workspace goals

<p>Returns goals for a specific workspace. Supply the workspace ID. You can narrow results by workspace-level flag and by time period IDs when needed.</p>

SELECT * FROM Goals WITH(Workspace='1200442900140748')

List team goals

<p>Returns goals for a specific team. Supply the team ID. The same optional filters as other goal queries apply: workspace-level flag, time periods, and optionally workspace, project, or portfolio for cross-scope filtering.</p>

SELECT * FROM Goals WITH(Team='1200442900140748')

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

List project goals

<p>Returns goals for a specific project. Supply the project ID. You can also filter goals by workspace, portfolio, or team when you want goals at different levels, and optionally narrow by workspace-level flag or time periods.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Goals WITH(Project=''1206673375982078'')';

EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];

List workspace goals

<p>Returns goals for a specific workspace. Supply the workspace ID. You can narrow results by workspace-level flag and by time period IDs when needed.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Goals WITH(Workspace=''1200442900140748'')';

EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];

List team goals

<p>Returns goals for a specific team. Supply the team ID. The same optional filters as other goal queries apply: workspace-level flag, time periods, and optionally workspace, project, or portfolio for cross-scope filtering.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Goals WITH(Team=''1200442900140748'')';

EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];