Get Teams using Java SDK

Hi,

I am using the Java SDK (GitHub - Asana/java-asana: Official Java client library for the Asana API v1) to start pulling information from our Asana data.

Basically, in our Asana, we have multiple Teams and I want to get that information through the API. I am using the following code to get the teams but the result is always 0. Not sure if there is another way to get the teams?

Iterable team = client.teams.findByOrganization(workspace.name);

Thanks,

JP

Maybe you need to use workspace.id

1 Like

That worked! Thanks!

1 Like