# Custom Code result returning null

**URL:** <https://community.hubspot.com/t/custom-code-result-returning-null/95782>\
**Category:** APIs & Integrations\
**Tags:** professional, free, starter\
**Created:** [December 11, 2023, 2:26pm UTC](https://community.hubspot.com/t/custom-code-result-returning-null/95782 "2023-12-11T14:26:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MVAsh](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@MVAsh](https://community.hubspot.com/u/MVAsh)\
**Post date:** [December 11, 2023, 2:26pm UTC](https://community.hubspot.com/t/custom-code-result-returning-null/95782/1 "2023-12-11T14:26:15Z")

</div>

Hi, I am having an issue with some custom code, after making a POST API call to /crm/v3/objects/line\_items/search the property “results” returns as undefined, this does not happen for every call to this endpoint.

---

<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:** [December 11, 2023, 10:48pm UTC](https://community.hubspot.com/t/custom-code-result-returning-null/95782/2 "2023-12-11T22:48:18Z")

</div>

Hi, @MVAsh 👋 Thanks for your question!

Can you share your code example? Or the specific part or function that is giving you an issue, please? It’s hard to say without more information.

Best,

Jaycee

---

<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:** [December 12, 2023, 8:46am UTC](https://community.hubspot.com/t/custom-code-result-returning-null/95782/3 "2023-12-12T08:46:21Z")

</div>

Hi @MVAsh

I am reaching out to kindly request clarification on the JSON body that is being utilized during the API call. Specifically, I would like to understand the filters that are being applied within the JSON body.  
Could you please provide me with the details of the filters that are present in the JSON body?

Hope this will helps you out. Please mark it as **Solution Accepted & Upvote** to help other Community member.  
Thanks!
