Hi,
The GetDocuments method is not suitable for this aim, as you need to JOIN the tables on the Format (GUID) column with your custom table. It might be possible to modify the default
selectall query for your document type, however it cannot be recommended, because that query is used widely in other places and can be updated (refreshed) dynamically after any change in the document type definition.
You could create a custom query (
DevGuide - Document type properties - Queries) and execute it via API as shown in
Data layer custom query example article.
Hope this will help.
Should you need any additional details, please feel free to ask.
Regards,
Zdenek