Jump to content

It is impossible to list attachment file names / extensions (types) without retrieving attachment body


 Share

Recommended Posts

As discussed with @Louis Sterio2 it is not possible either with the REST API or the XML-based API. We can get the name of the attachment itself, but it usually contains many files, and we cannot get to the filenames without downloading the potentially large binary dataset.

It looks like for now, "file" only supports the OPTIONS method:

image.png.59f194c319b913a19fa6edd0bed37492.png

 

We would like an API that would take:

INPUT: SUPDOCID

OUTPUT:

[{ name: 'invoice', type: 'png' }, { name: 'proof", type: 'pdf' }]

Without the binary data.

Link to comment
Share on other sites

 Share

×
×
  • Create New...