APIs & Integrations

Kumble
Member

How to directly create and associate an attachment to a Deal via Api

SOLVE

Hi Team,

I've noticed that, typically, we need to first create a note that includes an attachment and then link that note to a Deal object.

Is there an option to bypass the step of creating a note and directly associate an attachment with the Deal object instead?

0 Upvotes
2 Accepted solutions
zach_threadint
Solution
Top Contributor

How to directly create and associate an attachment to a Deal via Api

SOLVE

Hi @Kumble 👋

 

As far as I'm aware, there's no way to bypass the requirement to create a note with the relevant File ID set as the Note "hs_attachment_ids" property.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


View solution in original post

HubSpot_Corey
Solution
Top Contributor

How to directly create and associate an attachment to a Deal via Api

SOLVE

Hi @Kumble and thanks for the tag @BérangèreL 

 

The only other way to store a file in HubSpot is to store it in a file property. File properties are actually text fields that can either reference a URL where a file is stored or the ID of a file stored in HubSpot files. Thanks to this, you can actually use the Files API to upload a document and then use the ID returned in the response to update the file property on the object. 

View solution in original post

3 Replies 3
HubSpot_Corey
Solution
Top Contributor

How to directly create and associate an attachment to a Deal via Api

SOLVE

Hi @Kumble and thanks for the tag @BérangèreL 

 

The only other way to store a file in HubSpot is to store it in a file property. File properties are actually text fields that can either reference a URL where a file is stored or the ID of a file stored in HubSpot files. Thanks to this, you can actually use the Files API to upload a document and then use the ID returned in the response to update the file property on the object. 

zach_threadint
Solution
Top Contributor

How to directly create and associate an attachment to a Deal via Api

SOLVE

Hi @Kumble 👋

 

As far as I'm aware, there's no way to bypass the requirement to create a note with the relevant File ID set as the Note "hs_attachment_ids" property.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


BérangèreL
Community Manager
Community Manager

How to directly create and associate an attachment to a Deal via Api

SOLVE

Hi @Kumble and welcome to the Community!
We are delighted to have you here!

Thanks for asking the Community!

I have checked and in all the threads, it seems that you do need a note:

- Attach file to deal record using API
- How to create and associate files with Deals?

I'd love to ask our Top Experts and some of our Community Members about this: Hi @SSharma043, @riipenadmin, @AEACGi, @zach_threadint, @Bortami and @HubSpot_Corey have you tried it without creating a note? If yes, does it work? Or do you have workarounds to help @Kumble, please?

Thanks so much and have a great day!

Best,
Bérangère


Saviez-vous que la Communauté est disponible en Français ?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres !

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings!