# Map the custom object with contacts

**URL:** <https://community.hubspot.com/t/map-the-custom-object-with-contacts/121436>\
**Category:** Lists, Lead Scoring & Workflows\
**Tags:** workflows\
**Created:** [November 26, 2024, 9:30pm UTC](https://community.hubspot.com/t/map-the-custom-object-with-contacts/121436 "2024-11-26T21:30:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBhavi](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@DBhavi](https://community.hubspot.com/u/DBhavi)\
**Post date:** [November 26, 2024, 9:30pm UTC](https://community.hubspot.com/t/map-the-custom-object-with-contacts/121436/1 "2024-11-26T21:30:48Z")

</div>

Hello,

Currently in one of the workflows, we are calling

hubspotClient.crm.objects.basicApi.getById() to get the the custom obejct details and using that to send email to user depending on few critera.

As the above steps calls the same custom object to get the data for each users in the list, it’s a repeatative call. So to avoid that, we are planning to store the custom object to contact level. meaning in a workflow before the ‘custom code’ step, we want to read the custom object data and map it to all the contact property , so that in ‘custom code’ we can read the data through contact property, not through API . This will reduce the number of API calls.

Is there any way, where We can copy or map the custom object data to a contact property without any API call.

We do have a one more scheduled workflow , which calls a external API and after manipulating the response store it in custom object , So here also if I can map the manipulated response directly to contacts properties without API, that also would be good.

Please suggest some solution for this problem.

Thanks.

---

<div class="post-metadata">

**Author:** ![franksteiner79](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franksteiner79/32/34443_2.png) [@franksteiner79](https://community.hubspot.com/u/franksteiner79)\
**Post date:** [November 27, 2024, 5:23am UTC](https://community.hubspot.com/t/map-the-custom-object-with-contacts/121436/2 "2024-11-27T05:23:42Z")

</div>

Hi @DBhavi

Custom coded actions aside, are you able to explain in a few bullet points and with an example, what it is you want to do?

Right now it’s a bit too abstract but my gut feeling is that you’ve gone down a very complicated route, that might not be necessary in the first place.

Frank

---

<div class="post-metadata">

**Author:** ![DBhavi](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@DBhavi](https://community.hubspot.com/u/DBhavi)\
**Post date:** [November 27, 2024, 7:07pm UTC](https://community.hubspot.com/t/map-the-custom-object-with-contacts/121436/3 "2024-11-27T19:07:59Z")

</div>

This is the current scenario :

1. We have a schduled workflow daily morning, which calls a API from our application. The response from the API is manipulated as we need in hubspot and stored in a custom object, for example called its as “CustomObjA”.

2. Later in the afternoon, we run another schduled workflow, which reads data from a existing “List” in hubspot (Filters the contact data). This workflow has a custom code as steps. Here in the custom code as of now, we are calling GET API to get the “CustomObjA” and use the contacts filtered the privious step and teh data in “CustomObjA” to send the Email.

Problem is now the GET api to get the “CustomObjA” is calling everytime per user ,which is not necessary. So I’m planning to copy/keep the data in “CustomObjA” contacts so I will skip calling API everytime.

Let me know, if you need any information.

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [November 27, 2024, 12:11pm UTC](https://community.hubspot.com/t/map-the-custom-object-with-contacts/121436/4 "2024-11-27T12:11:44Z")

</div>

Hi @DBhavi

I would like to share the solution that you can map custom object data to contact objects without any API Calls. You can u **se the “Edit Record” Action** : Under the **CRM menu** , you’ll find the **“Edit Record”** action. This allows us to update contact properties with data from associated custom objects. see the screenshot below:

 ![GRajput_0-1732708041937.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/5/e58497a20291486d5f9add2c5df946193501e718.png)

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!

---

<div class="post-metadata">

**Author:** ![DBhavi](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@DBhavi](https://community.hubspot.com/u/DBhavi)\
**Post date:** [November 27, 2024, 4:29pm UTC](https://community.hubspot.com/t/map-the-custom-object-with-contacts/121436/5 "2024-11-27T16:29:09Z")

</div>

@GRajput , I tried that way , but it won’t give option for custom object mapping. please find the screenshot below.

 ![DBhavi_0-1732724940847.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/c/4c2e6514764d3d74232271efdc7e7e8b9b4dda15.png)
