cancel
Showing results for 
Search instead for 
Did you mean: 

Get all attachments via API is not visible

mahamoudibrahim
Discoverer
0 Kudos
65

Attachments added via the API and the SAP user interface to a to a supplier invoice are only visible one by one with this parameter:

/API_CV_ATTACHMENT_SRV/GetAllOriginals?BusinessObjectTypeName='BKPF'&LinkedSAPObjectKey='123 10000000272024'

How can I retrieve the list of all attachments? When I try this via Postman:

API_CV_ATTACHMENT_SRV/GetSAPObjectDocumentType?SAPObjectType='BKPF'

It returns empty because "SAPObjectType": "" for the uploaded attachments.

Ryan-Crosby
Active Contributor
0 Kudos
I've used the attachment API to retrieve the list of attachments with the GetAllOriginals function.
Ryan-Crosby
Active Contributor
0 Kudos
There isn't an API to look at all attachments, you must designate which business object is of interest.

Accepted Solutions (0)

Answers (2)

Answers (2)

mahamoudibrahim
Discoverer
0 Kudos

Would a CDS view be a solution to retrieve documents and their attachments?

mahamoudibrahim
Discoverer
0 Kudos

The response from GetAllOriginals only concerns a single LinkedSAPObjectKey. I would like to retrieve all attachments for all the documents.

Is there something I might be missing? Thank you for your help, I appreciate it."