Expand my Community achievements bar.

Join us for our Coffee Break Sweepstakes on July 16th! Come ask your questions or share your use cases on Creative Briefs for a chance to win a piece of Workfront swag!

Is it possible to use multiple modifiers in an API query?

Avatar

Level 10
Hi, I have build an API query which works successfully if I use one modifier as follows. In this example it filters for projects with an APR (approved) status: "........&project:status=APR&project:status_Mod=eq................" What I would like to do is search for projecs with either of two statuses.....APR (approved) or CUR (current). In text-mode report filters, it is possible to use "status_Mod=in" to include both statuses. The API documentation at https://developers.workfront.com/api-docs/#Search doesn't give any indication that you can search for multiple project statuses at the same time. Can anyone advise how this can be done? Thanks in advance! Cheers, David
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Level 10
Hi David, To create an IN using the API, simply repeat the field with each separate desired value. For example, to see Projecrs of Planning or Dead Status, you would run this: https://[yourdomain].attask-ondemand.com/attask/api/v5.0/proj/search?status=PLA&status=DED&fields=status Regards, Doug

Avatar

Level 10
Thanks Doug. I had worked it out and forgot to update this thread. For others who are interested, this is the solution :)