Attach(upload) file to Note via api

SOLVE
Abhimanyu
Contributor

Hi

 

Can we used engagement api to attach (upload) file to note?

I saw this post Solved: HubSpot Community - How can I upload file to a ticket using API. - HubSpot Community  but it is for attaching to ticket but I want to attach fie to NOTE.

 

Thanks

 

 

0 Upvotes
1 Accepted solution

Accepted Solutions
dennisedson
Solution
Community Manager

Hey @Abhimanyu !

You will need to upload the file with file manager and then get the ID and use that ID as the value for the attachment in your note

 

@quentin_lamamy might be able to help with more specific code implementation!

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!

View solution in original post

4 Replies 4
dennisedson
Solution
Community Manager

Hey @Abhimanyu !

You will need to upload the file with file manager and then get the ID and use that ID as the value for the attachment in your note

 

@quentin_lamamy might be able to help with more specific code implementation!

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!

View solution in original post

quentin_lamamy
Key Advisor

Thanks @dennisedson for the ping
Hi @Abhimanyu ,

Which langugage are you using ? Are you using a sdk ?


Abhimanyu
Contributor

Hi @quentin_lamamy 
I am using C#. As @dennisedson mention now I able to upload file to the note earlirier I was getting the error becuase attachment json was incorrect and it is causing the issue. 

 

Thank you

quentin_lamamy
Key Advisor

Hi @Abhimanyu

I'm glad to hear that you solved your issue, don't forget to flag your topic as sovled.