In the folders API is it possible to search?

Hello :D

We are prototyping our wrike integration and we have the customer encoded into our project/folder names. Although less than ideal it is legacy so for now I am stuck with it. 

Is it possible to filter results with parameters in the v4 API ? For example, if I want to get all project/folder containing "-HR-" can I do something like:

https://www.wrike.com/api/v4/folders?project=true&title=*-HR-*

Trying anything like this returns a 400. What is the correct way to do this?

If it is not possible I assume the only options are either

  • add a custom field to each folder OR
  • put the projects into parent folders that have a custom field and filter by parent (?)

Either way I would assume other users would want to filter results. I hope I just missed some filtering parameter in the docs 😕

Many thanks,

JC

0
Комментариев: 8
Spot On Innovative Approach Stellar Advice
Avatar

Interested in this as well. For what its worth, another option (what I do) is simply pull in more data than I need and filter in my code. Not particular graceful or efficient but gets the job done. 

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

Hi @James & @Nathan, thanks for reaching out! I can raise tickets for you so that our Advanced Support agents could help. Please let me know 🙂

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

Hello @Lisa, yes please. Our integration project is moving nicely but this one issue is a blocker for including wrike information.

Thank you :D

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

@James, of course, ticket raised 🙂

Come back to the Community if you have any other questions, happy to help and discuss 🖖

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

James chappell - was this ever resolved for you? I didn't create my own ticket... figured I would see how yours played out :-)

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

Hey Nathan Jones, just jumping in for James chappell here, hope he doesn't mind.

From what I can see in our advanced support agent's reply, you can try Custom Field or parent folders. Alternatively, you can use a PUT /folders call with parameter 
?metadata={"key":"testMetaKey","value":"testMetaValue"}. This metadata is not visible in Workspace though, while it can be used to filter folders and projects in API calls. Filtering folders/projects by title in responses to GET /folders queries,  filter by ?title= is not supported in Wrike API.

Hope this helps! 

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

I am doing something like this using the eDiscovery Search API. The call below after authentication does a (looks like wildcard) search in the projects and folders for the word test.  This brings back the ids of the folders/projects.

https://www.wrike.com/api/v4/ediscovery_search?scopes=["folder","project"]&terms=["test"]

See: EDiscovery | Develop your own integration on the Wrike API

Hope this helps someone.

 

1
Действия с комментариями Постоянная ссылка
Spot On Innovative Approach Stellar Advice
Avatar

Hi Gordon Muscroft, welcome to the Community 👋 Thanks a lot for sharing this! 
If you'd like to know what this Community has to offer, please check out our New to Community forum 🤗

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Действия с комментариями Постоянная ссылка

Folllowing List for Post: In the folders API is it possible to search?
[this list is visible for admins and agents only]

Вверх
Didn’t find what you were looking for? Write new post