Question:
A user wants to obtain documents with attachments through VQL(Vault Query Language). How can the user search documents with attachments through VQL?
Answer:
The user can use VQL to access, retrieve, and interact with Vault data. To send a VQL query, use the /api/{version}/query
endpoint in the REST API Reference.
Send the following query to return documents with attachments.
v, source_doc_idv, source_major_versionv,
source_minor_versionv, target_doc_idv, target_major_versionv,
target_minor_versionv
FROM relationships
WHERE relationship_typev = 'attachmentsv'
AND source_doc_id
Related Documentation:
Vault Help Documentation: Introduction to Vault Queries