# Error when using custom code workflow action to merge contacts based on matching phone number

**URL:** <https://community.hubspot.com/t/error-when-using-custom-code-workflow-action-to-merge-contacts-based-on-matching-phone-number/88939>\
**Category:** CMS Development\
**Tags:** javascript\
**Created:** [September 5, 2023, 1:58am UTC](https://community.hubspot.com/t/error-when-using-custom-code-workflow-action-to-merge-contacts-based-on-matching-phone-number/88939 "2023-09-05T01:58:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 6, 2023, 4:16pm UTC](https://community.hubspot.com/t/error-when-using-custom-code-workflow-action-to-merge-contacts-based-on-matching-phone-number/88939/2 "2023-09-06T16:16:41Z")

</div>

Hey, @tcxen 👋 Thanks for your question! Did you get this worked out?

Can you share your code example here, please? Minus your Private App details 😊

The code block tool can help with formatting as needed.

Seeing how your code looks, helps our community members to give targeted advice. (You didn’t do anything wrong, I want to increase our surface area for getting an answer for you if possible)

Thanks! — Jaycee

---

_[View the full topic](https://community.hubspot.com/t/error-when-using-custom-code-workflow-action-to-merge-contacts-based-on-matching-phone-number/88939)._
