Nick Sweet
Nick Sweet

Reputation: 2139

How do I get follower names instead of IDs?

I assumed that this would provide me with the list of follower names instead of just the IDs:

https://app.asana.com/api/1.0/projects?opt_fields=name,followers&opt_expand=followers

Am I using opt_expand incorrectly?

Upvotes: 0

Views: 141

Answers (1)

Greg S
Greg S

Reputation: 2079

(I work at Asana)

The interplay between opt_fields and opt_expand may be confusing, as opt_fields currently takes precedence.

The key name in the opt_fields list it will pertain to the projects, not the followers. Try passing just opt_fields=followers,followers.name.

Upvotes: 1

Related Questions