# Custom Coded Action - Parse Property for Custom Object ID

**URL:** <https://community.hubspot.com/t/custom-coded-action-parse-property-for-custom-object-id/122168>\
**Category:** APIs & Integrations\
**Tags:** workflows\
**Created:** [December 9, 2024, 6:41pm UTC](https://community.hubspot.com/t/custom-coded-action-parse-property-for-custom-object-id/122168 "2024-12-09T18:41:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JLittle2](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@JLittle2](https://community.hubspot.com/u/JLittle2)\
**Post date:** [December 9, 2024, 6:41pm UTC](https://community.hubspot.com/t/custom-coded-action-parse-property-for-custom-object-id/122168/1 "2024-12-09T18:41:52Z")

</div>

I have a form that collects vins and other info from users. These users need to be able to list an unlimited number of vins, so I’m using a multi-line property to allow them to input as many as needed (one per line).

Here’s the thing, we use vin as the unique identifier of our custom object “Vehicles”. I need a way to separate the multi-line field into individual vins, and create a Vehicle record for each. I know that with custom coded actions I can parse through the collected vins and add them to a list, but is it possible to create a Vehicle record for each within the same action?

Thanks y’all!

---

<div class="post-metadata">

**Author:** ![JLittle2](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@JLittle2](https://community.hubspot.com/u/JLittle2)\
**Post date:** [December 10, 2024, 12:01am UTC](https://community.hubspot.com/t/custom-coded-action-parse-property-for-custom-object-id/122168/2 "2024-12-10T00:01:30Z")

</div>

Attached is the code I’ve pulled together. I’m getting this lambda error:  
LAMBDA\_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT\_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see [Understanding how Lambda manages runtime version updates - AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html)  
[ERROR] TypeError: main() missing 1 required positional argument: ‘context’  
Traceback (most recent call last):  
File “/var/task/hubspotHandler.py”, line 6, in hubspot\_handler  
return file.main(event)

Any help would be appreciated!

 ![Screenshot 2024-12-09 at 4.59.07 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/d3f06995bcf67fd554ac2a6aa3271136b68eb40c.png)

---

<div class="post-metadata">

**Author:** ![JLittle2](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@JLittle2](https://community.hubspot.com/u/JLittle2)\
**Post date:** [December 12, 2024, 6:21pm UTC](https://community.hubspot.com/t/custom-coded-action-parse-property-for-custom-object-id/122168/3 "2024-12-12T18:21:52Z")

</div>

This is the code that ended up working for me. I just got rid of the context. Also, turns out, when you use test action in a custom coded action it can’t fetch associated object properties, so I had to test the whole workflow for it to pull all the information. But it works! Hopefully this helps someone else in the future.

 ![Screenshot 2024-12-12 at 11.19.40 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/b/cbc4eee8336a50141edcc1f96ee7825630b2d61d.png)
