APIs & Integrations

SSriram3
Participant

Associating files with companies and contacts

SOLVE

Hi all, I'm working on migrating to HubSpot from another CRM tool. I'd like to understand if there is any way I can associate a file with an existing company or contact like how I can associate notes/tasks/emails?
I see that there is a way to include attachments in notes but I'd like to have a direct association of files with company records.
Thank you!

0 Upvotes
1 Accepted solution
SteveHTM
Solution
Key Advisor | Partner
Key Advisor | Partner

Associating files with companies and contacts

SOLVE

@SSriram3 - A quick approach here is to create a custom property of type file on the Company record. You can upload a file [or more than one] to set that property.

 

Is that helpful?

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature

View solution in original post

0 Upvotes
5 Replies 5
SteveHTM
Solution
Key Advisor | Partner
Key Advisor | Partner

Associating files with companies and contacts

SOLVE

@SSriram3 - A quick approach here is to create a custom property of type file on the Company record. You can upload a file [or more than one] to set that property.

 

Is that helpful?

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
0 Upvotes
SSriram3
Participant

Associating files with companies and contacts

SOLVE

@SteveHTM - thanks for the suggestion, also to add on, in the API docs I don't see a way we can update a file type property for a company (I only see examples for other field types)
Any ideas for that? TIA!

0 Upvotes
SteveHTM
Key Advisor | Partner
Key Advisor | Partner

Associating files with companies and contacts

SOLVE

At the end of the day, its just a File ID value - can be copied from an email attachment of form upload for example. Use the File API to get access to a URL or other meta data.

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
SSriram3
Participant

Associating files with companies and contacts

SOLVE

@SteveHTM - figured it out
I see that a file uploaded to the files property gets stored as a hidden file in a hidden folder, so I will be uploading files to that folder and update the files property with those file ids created during upload
Thank you!

0 Upvotes
SteveHTM
Key Advisor | Partner
Key Advisor | Partner

Associating files with companies and contacts

SOLVE

I won't deny there are some quirks related to "private" files in the API, but they can all be overcome in my experience. 

 

Good luck!

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
0 Upvotes