fun queryAttachments(criteria: AttachmentQueryCriteria, sorting: AttachmentSort?): List<AttachmentId>
Searches attachment using given criteria and optional sort rules
criteria
- Query criteria to use as a filter
sorting
- Sorting definition, if not given, order is undefined
Return
List of AttachmentId of attachment matching criteria, sorted according to given sorting parameter