# custom code not copying to output field

**URL:** <https://community.hubspot.com/t/custom-code-not-copying-to-output-field/141235>\
**Category:** Data Hub\
**Created:** [October 17, 2025, 3:50pm UTC](https://community.hubspot.com/t/custom-code-not-copying-to-output-field/141235 "2025-10-17T15:50:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SueWest](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@SueWest](https://community.hubspot.com/u/SueWest)\
**Post date:** [October 17, 2025, 3:50pm UTC](https://community.hubspot.com/t/custom-code-not-copying-to-output-field/141235/1 "2025-10-17T15:50:50Z")

</div>

I have a custom code action to strip out trailing ‘/’ on LinkedIn URLs for our de-dupe tool. When I test it appears to work, but it’s not copying the data into the custom field (cleaned\_url). Not sure what I have wrong.

 ![Screenshot 2025-10-17 at 11.36.24 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/0/e04609112368c20af43e453dbe0ca2544d511e06.png)

 ![Screenshot 2025-10-17 at 11.36.31 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/d/6d25d27ecfeab6c2975acca22d4c3a579b915531.png)

 ![Screenshot 2025-10-17 at 11.36.49 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/b/8bacf36e7d9842304e21da3c1b5f19b53e3c5618.png)

 ![Screenshot 2025-10-17 at 11.36.57 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/f5d97b0b7d060cd1ea34cc8d1ed82ab7fa26961b.png)

---

<div class="post-metadata">

**Author:** ![chighsmith](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@chighsmith](https://community.hubspot.com/u/chighsmith)\
**Post date:** [October 17, 2025, 3:56pm UTC](https://community.hubspot.com/t/custom-code-not-copying-to-output-field/141235/2 "2025-10-17T15:56:07Z")

</div>

Hi there @SueWest,  
Thank you for posting to the Community! I understand that you are having some issues with your Custom Coded workflow branch not copying over correctly.  
Tagging in some Subject Experts to see if they are able to provide any guidance on this -- @HFisher7 and @miljkovicmisa Do either of you have any advice for @SueWest?  
Cassie, Community Manager

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [October 17, 2025, 3:57pm UTC](https://community.hubspot.com/t/custom-code-not-copying-to-output-field/141235/3 "2025-10-17T15:57:11Z")

</div>

Hi @SueWest,

Thr output doesn’t write into a property directly - you need to place an “Edit record” workflow action right after. You can then set the value of the property to he the output of you custom code action. (Use the dropdown at the top of the edit record action to access the custom code action output.)

Best regards!

---

<div class="post-metadata">

**Author:** ![SueWest](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@SueWest](https://community.hubspot.com/u/SueWest)\
**Post date:** [October 17, 2025, 4:08pm UTC](https://community.hubspot.com/t/custom-code-not-copying-to-output-field/141235/4 "2025-10-17T16:08:10Z")

</div>

Thanks. I knew something was missing!
