APIs & Integrations

cimar007
参加者

Can't download Deal attachments

解決

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件の承認済みベストアンサー
WendyGoh
解決策
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

解決

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 いいね!
6件の返信
WendyGoh
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

解決

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 いいね!
cimar007
参加者

Can't download Deal attachments

解決

@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 いいね!
WendyGoh
解決策
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

解決

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 いいね!
mtayyab6
メンバー

Can't download Deal attachments

解決

Hi,

How can we can hidden files? Please let me know

Thanks

0 いいね!
cimar007
参加者

Can't download Deal attachments

解決

@WendyGoh 

 

I understand but it should be accessible though. 

 

We should be able to access those files.

 

 

0 いいね!
WendyGoh
HubSpot Employee
HubSpot Employee

Can't download Deal attachments

解決

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 いいね!