# Automatically logging activities to a Custom Object

**URL:** <https://community.hubspot.com/t/automatically-logging-activities-to-a-custom-object/80755>\
**Category:** CRM\
**Tags:** object\
**Created:** [May 8, 2023, 2:49pm UTC](https://community.hubspot.com/t/automatically-logging-activities-to-a-custom-object/80755 "2023-05-08T14:49:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TSchoorstra](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@TSchoorstra](https://community.hubspot.com/u/TSchoorstra)\
**Post date:** [May 8, 2023, 2:49pm UTC](https://community.hubspot.com/t/automatically-logging-activities-to-a-custom-object/80755/1 "2023-05-08T14:49:07Z")

</div>

Hi all!

We’ve recently created a Custom Object and we would like to have activities synced over (just like a company record where activities are rolled up from the associated contact records).

I’m unable to find a way to do this other than manually associating activities to the Custom Object (which is not an option).

Did anyone else find a solution to automatically log emails, tasks, meetings, notes, and calls from contacts to the associated Custom Object? If you did, please let me know! Love to know how.

All the best,

---

<div class="post-metadata">

**Author:** ![Bryantworks](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bryantworks/32/94963_2.png) [@Bryantworks](https://community.hubspot.com/u/Bryantworks)\
**Post date:** [May 8, 2023, 3:09pm UTC](https://community.hubspot.com/t/automatically-logging-activities-to-a-custom-object/80755/2 "2023-05-08T15:09:05Z")

</div>

Hey @TSchoorstra,

Unfortunately, this doesn’t seem possible as a forced default. I’ve successfully associated tasks to a custom object via Custom Code actions inside of a workflow, and I’m sure it would be easy to adapt that object to calls, meetings, and emails.

---

<div class="post-metadata">

**Author:** ![TSchoorstra](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@TSchoorstra](https://community.hubspot.com/u/TSchoorstra)\
**Post date:** [May 24, 2023, 1:31pm UTC](https://community.hubspot.com/t/automatically-logging-activities-to-a-custom-object/80755/3 "2023-05-24T13:31:32Z")

</div>

Hi Chris,

Thanks for your reply.

Do you mind sharing that code block with me so I can test it out in my developer portal for emails, meetings etc.

Hope to hear from you soon!

All the best,

---

<div class="post-metadata">

**Author:** ![RLeo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rleo/32/9140_2.png) [@RLeo](https://community.hubspot.com/u/RLeo)\
**Post date:** [July 6, 2023, 2:51pm UTC](https://community.hubspot.com/t/automatically-logging-activities-to-a-custom-object/80755/4 "2023-07-06T14:51:10Z")

</div>

Hi @Bryantworks  
Can you kindly share the code you mention? We also need to somehow achieve this.  
Thanks!

---

<div class="post-metadata">

**Author:** ![danielaarceoh](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@danielaarceoh](https://community.hubspot.com/u/danielaarceoh)\
**Post date:** [August 2, 2024, 6:54pm UTC](https://community.hubspot.com/t/automatically-logging-activities-to-a-custom-object/80755/5 "2024-08-02T18:54:49Z")

</div>

Hi Chris!  
Im having this same issue, I’d love to poke your brain and see your code, I worked on my own code and I keep getting a weird error

---

<div class="post-metadata">

**Author:** ![Emmanuelle](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/emmanuelle/32/50915_2.png) [@Emmanuelle](https://community.hubspot.com/u/Emmanuelle)\
**Post date:** [January 7, 2025, 3:10pm UTC](https://community.hubspot.com/t/automatically-logging-activities-to-a-custom-object/80755/6 "2025-01-07T15:10:52Z")

</div>

Hello @Bryantworks ,

Could you please, share the code? It will help a lot 😊  
Thank you so much

Best,

---

<div class="post-metadata">

**Author:** ![SCuff](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@SCuff](https://community.hubspot.com/u/SCuff)\
**Post date:** [September 19, 2024, 1:27am UTC](https://community.hubspot.com/t/automatically-logging-activities-to-a-custom-object/80755/7 "2024-09-19T01:27:29Z")

</div>

Is there any updates here? It would be great feature - the manual logging is labourious.
