APIs & Integrations

cimar007
Participante

Can't download Deal attachments

resolver

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 Soluciones aceptada
WendyGoh
Solución
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

resolver

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. 

 

Ver la solución en mensaje original publicado

0 Me gusta
6 Respuestas 6
WendyGoh
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

resolver

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 Me gusta
cimar007
Participante

Can't download Deal attachments

resolver

@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 Me gusta
WendyGoh
Solución
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

resolver

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 Me gusta
mtayyab6
Miembro

Can't download Deal attachments

resolver

Hi,

How can we can hidden files? Please let me know

Thanks

0 Me gusta
cimar007
Participante

Can't download Deal attachments

resolver

@WendyGoh 

 

I understand but it should be accessible though. 

 

We should be able to access those files.

 

 

0 Me gusta
WendyGoh
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

resolver

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 Me gusta