on 2022 Jul 02 10:09 PM
Hello,
I'm using the Get Attachment API to download the attachment from specific task,
The API requires entity type, entity id and attachment id, I got the entity type, entity id from get entity API(for the task),but couldn't find the attachment id,
Is there anyone have an idea how to get the attachment id to can retrieve the attachment ?
Request clarification before answering.
Hi Lamyaa,
I assume you are using the external approval API for this and using the get attachment endpoint. If that is the case, please be sure to use the query parameter select=itemResponses. The URL will look something like this:
If you do this and an attachment has been included as part of an answer, you will see json similar to the below:
"attachmentAnswer": {
"id": "Doc3561234904,AK44443FekS!HvT,AKka49595S!JOT",
"fileName": "hello.pdf",
"mimeType": "application/pdf",
"fileSize": 27980
},
The "id" field is what you will then need to put in your next call to get the attachment. Thanks for the question - hope this helps!
- Sean
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.