# Custom code / Format Data - split full name property

**URL:** <https://community.hubspot.com/t/custom-code-format-data-split-full-name-property/72665>\
**Category:** Data Hub\
**Tags:** workflow-extension, format-data-actions\
**Created:** [January 11, 2023, 2:05pm UTC](https://community.hubspot.com/t/custom-code-format-data-split-full-name-property/72665 "2023-01-11T14:05:03Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ChrisoKlepke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chrisoklepke/32/11213_2.png) [@ChrisoKlepke](https://community.hubspot.com/u/ChrisoKlepke)\
**Post date:** [January 12, 2023, 8:25am UTC](https://community.hubspot.com/t/custom-code-format-data-split-full-name-property/72665/5 "2023-01-12T08:25:16Z")

</div>

Hey @ShlomiGani ,

sure, let me show you how to set up the custom code action with some screenshots.

The most important stuff is the following:

- Language: Python 3.9
- Properties to include: Choose the property that holds your _Full Name_ values and give it key _input\_string_
- Code: Copy and paste the provided code
- Data output: Create two data outputs as string values and call the _first\_name_ and _last\_name_

 ![Screenshot 2023-01-12 at 09.13.03.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/d7c9dd9f9f9292c38a96727e36ee63eb112927b5.png)

 ![Screenshot 2023-01-12 at 09.13.17.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/5/95a11461b362a020bac8a8f1d7e888e9a5e9a5f4.png)

You then can test it with a contact.

To use it in the _First Name_ and _Last Name_ properties, create two additional workflow actions with _Copy Property Value._ Here you can copy the value from the output strings to the respective property.

 ![Screenshot 2023-01-12 at 09.14.07.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/7/d74797bb554117e30137aa426ec8d77c59552e84.png)

If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I’d really appreciate it.

Cheers,

Chriso

---

_[View the full topic](https://community.hubspot.com/t/custom-code-format-data-split-full-name-property/72665)._
