Get Teams using Java SDK

teams

#1

Hi,

I am using the Java SDK (https://github.com/Asana/java-asana/) 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


#2

Maybe you need to use workspace.id


#3

That worked! Thanks!