List Active Projects via API

Hi,

I’m probably missing a something obvious here, but how can I get a list of active projects and their Id’s via shotgun_api3. I can handle the rest, but I can’t seem to find the right query for listing projects.

Thanks!
-Johan

2 Likes

Asking the question is answering it…

projects = sg.find("Project", filters=[["sg_status", "is", "Active"]], fields=["code", "name", "id", "tank_name"])

Cheers!

9 Likes

Hi Johan,

Asking is answering - I like that! :slightly_smiling_face:

Thanks!
Matt

3 Likes