0

Using DQL I want to return all the documents under the Cabinet test. How would I go about writing a query to do this?

shsteimer
  • 28,436
  • 30
  • 79
  • 95

2 Answers2

3
select r_object_id, object_name from dm_document(all) where folder('/NameOfCabinet', descend);
heeen
  • 4,736
  • 2
  • 21
  • 24
1

select * from dm_document where folder('/NameOfCabinet', descend); It will only return the current version of all the documents but not the all the version.

To see all the versions.

select * from dm_document(all) where folder('/NameOfCabinet', descend);