You are viewing limited content. For full access, please sign in.

Question

Question

How to filter API call to just Documents in a Folder?

asked on June 13, 2024

Using the "GET /v1/Repositories/{repoId}/Entries/{entryId}/Laserfiche.Repository.Folder/children" are you able to filter the results by entry type? I want to only bring back Documents from within a folder.

If yes, how do you test that in the Swagger playground?

0 0

Replies

replied on June 13, 2024

Blake,

I'd recommend transitioning to our V2 Repository API, but take a look at our Guide on retrieving documents here.  Take note of the $select query parameter the many different properties you can use to filter on documents. 

 

Andrew

0 0
replied on June 13, 2024

Andrew, it was my understanding that v2 for Self-Hosted wasn't available yet.

0 0
replied on June 13, 2024

Sorry, I didn't notice the tags on your post, and yes, you are correct.  But the same applies for v1 on Self-Hosted and the guide for that is here.

replied on June 13, 2024

I have tried using "entryType", but no matter what I enter I get "Error: Invalid Request". What is the correct format to enter it in the $Select field?

0 0
replied on June 13, 2024

You are correct, V1 is still the latest for SH, I missed the tags on your post.

Actually, you'd have to filter the results yourself as $select just determines which properties are returned.  What you would need is a $filter, which we don't currently support.  This is something we'll add to our backlog as it would be a powerful addition.

0 0
replied on June 13, 2024

So using the Search API call would probably be the best way to get the document I need then?

0 0
replied on June 14, 2024

Yes, especially if the number of results is small, then you can use Simple Search, which will return results right away.

0 0
replied on June 14, 2024

Yes, especially if the number of results is small, then you can use Simple Search, which will return results right away.

You are not allowed to follow up in this post.

Sign in to reply to this post.