# Getting a "\[runServerlessFunction\] Expected an object as an argument"

**URL:** <https://community.hubspot.com/t/getting-a-runserverlessfunction-expected-an-object-as-an-argument/127190>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [March 3, 2025, 12:20pm UTC](https://community.hubspot.com/t/getting-a-runserverlessfunction-expected-an-object-as-an-argument/127190 "2025-03-03T12:20:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FCosgun](https://avatars.discourse-cdn.com/v4/letter/f/e99b99/32.png) [@FCosgun](https://community.hubspot.com/u/FCosgun)\
**Post date:** [March 3, 2025, 12:20pm UTC](https://community.hubspot.com/t/getting-a-runserverlessfunction-expected-an-object-as-an-argument/127190/1 "2025-03-03T12:20:33Z")

</div>

Hello Guys

I am in the process of making a custom card that shows all active deals for a company when you click on a company

However, I get the error that says “[runServerlessFunction] Expected an object as an argument”

I’ve done everything I can and I can’t fix the error, hope you can help

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [March 3, 2025, 1:38pm UTC](https://community.hubspot.com/t/getting-a-runserverlessfunction-expected-an-object-as-an-argument/127190/2 "2025-03-03T13:38:28Z")

</div>

@FCosgun - can you offer any context at all on how your UI card is set up?

Steve

---

<div class="post-metadata">

**Author:** ![FCosgun](https://avatars.discourse-cdn.com/v4/letter/f/e99b99/32.png) [@FCosgun](https://community.hubspot.com/u/FCosgun)\
**Post date:** [March 4, 2025, 9:38am UTC](https://community.hubspot.com/t/getting-a-runserverlessfunction-expected-an-object-as-an-argument/127190/3 "2025-03-04T09:38:24Z")

</div>

I can share my .jsx file and serverless file (backend) with you?

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [March 4, 2025, 3:01pm UTC](https://community.hubspot.com/t/getting-a-runserverlessfunction-expected-an-object-as-an-argument/127190/4 "2025-03-04T15:01:47Z")

</div>

This is just a community of generous individuals who would like to help out where they can, but there is not much to go on in your post.
