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
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.
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
Hello @Lisa, yes please. Our integration project is moving nicely but this one issue is a blocker for including wrike information.
Thank you :D
@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
James chappell - was this ever resolved for you? I didn't create my own ticket... figured I would see how yours played out :-)
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
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.
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
Is there a reason you cannot use custom fields or metadata with spaces?
Hi Jonathan Towles, custom fields and metadata parameters are indeed not supported through the calls to /spaces endpoint yet. As a workaround, you can send requests to the /folders endpoint with these parameters. If the enhancement could be useful for your team, I highly encourage you to share your idea and use case via the Community Feedback page in a form of a new post - https://help.wrike.com/hc/en-us/community/topics/115000020349-Product-Feedback. Our developers constantly monitor this source and implement the most popular suggestions from there. Thank you in advance 🙌
Lisa K. Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Lisa K. Wrike Team member Become a Wrike expert with Wrike Discover