Jul 28, 2021 12:10 PM
I'm using 2 methods to get the attachments from a deal email. First, I get the associations of a deal, that is working fine and then I use the "Get an engagement" but the attachments array is empty. There is something else to allow the attachments in this method?
Jul 29, 2021 2:47 AM
Your approach seems to be correct, we have to first find the engagement associations and then have to fetch a single engagement using GET /engagements/v1/engagements/:engagementId
And you don't have to pass any additional detail to get the attachment id in the response.
Can you please make sure that you are evaluating the right engagement?
Jul 30, 2021 12:10 AM
Hi @JMartínez ,
Please fetch each engagement details using this api with engagement ID.
Example GET URL:
You will receive an object representing the requested engagement:
attachments list when viewing the record in HubSpot
"id": 4241968539 // Note this id is file id if you want fetch then use this api https://legacydocs.hubspot.com/docs/methods/files/get_files_file_id
"body": "note body"
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.