APIs & Integrations

cimar007
Participant

Can't download Deal attachments

SOLVE

I am looking for a solution to download the files that are located under Deals. 

 

I was able to retrieve the engagements (attachment_id, cloud key) but I can't come with a solution to download the file. 

 

I have a task in which the webhook calls my server when a deal is closed. I run some tasks in the background and I need the ability to download the files attached there as well. 

 

Can someone help ? 

1 Accepted solution
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

SOLVE

Hey @cimar007,

 

As per Derek response on this dev forum,

 

Files that are uploaded in-app by attaching them to object records are hidden by default. 

 

Additionally, as reference to this documentation, at the moment it is not possible to change hidden file from true to false or vice versa. 

 

Hidden files are non accessible via the file manager/api. 

 

View solution in original post

0 Upvotes
5 Replies 5
WendyGoh
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

SOLVE

Hey @cimar007,

 

Upon retrieving the attachment IDs, you can query this endpoint - Get file metadata | CMS Files API with the file IDs and from the return response, the url field will lead you to the file. 

0 Upvotes
cimar007
Participant

Can't download Deal attachments

SOLVE

@WendyGoh That does not apply for files that were uploaded in the CRM.

 

I need to find a way to upload these files.

 

Can you help ? 

 

Thanks

0 Upvotes
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

SOLVE

Hey @cimar007,

 

As per Derek response on this dev forum,

 

Files that are uploaded in-app by attaching them to object records are hidden by default. 

 

Additionally, as reference to this documentation, at the moment it is not possible to change hidden file from true to false or vice versa. 

 

Hidden files are non accessible via the file manager/api. 

 

0 Upvotes
cimar007
Participant

Can't download Deal attachments

SOLVE

@WendyGoh 

 

I understand but it should be accessible though. 

 

We should be able to access those files.

 

 

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

SOLVE

Hey @cimar007,

 

Thank you for the feedback! For this case, if you haven't already, I'd recommend jumping over to the HubSpot Ideas Forum and posting this idea there so that it's visible to the HubSpot product team and other HubSpot customers and developers. Hopefully this will gather more interest.

0 Upvotes