# crm\_object function: Limit value overrides total value

**URL:** <https://community.hubspot.com/t/crm-object-function-limit-value-overrides-total-value/80833>\
**Category:** CMS Development\
**Created:** [May 9, 2023, 2:51pm UTC](https://community.hubspot.com/t/crm-object-function-limit-value-overrides-total-value/80833 "2023-05-09T14:51:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MEmpeno](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@MEmpeno](https://community.hubspot.com/u/MEmpeno)\
**Post date:** [May 9, 2023, 2:51pm UTC](https://community.hubspot.com/t/crm-object-function-limit-value-overrides-total-value/80833/1 "2023-05-09T14:51:11Z")

</div>

Hi,

I need some help.

I have a job custom object and declared using crm\_objects function. I noticed on the print that the limit value overides the offset value, and is not getting the correct total number of my custom job object.

{# Get job object #}  
{% set jobs\_init = crm\_objects(‘job’, ‘offset=0&limit=20’)%}  
\<p\>{{jobs\_init}} \</p\>

Print Result:  
{has\_more=true, offset=20, total=20, results=[{20 job result listed}]

-------------------------------------------------------------------------------------

I also tried calling the the job custom object without the offset and limit queries

{# Get job object #}  
{% set jobs\_init = crm\_objects(‘job’)%}  
\<p\>{{jobs\_init}} \</p\>

Print Result:

{has\_more=true, offset=10, total=10, results=[{_hidden_}]}

This is the total number of jobs we have:

![MEmpeo_0-1683645459467.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/0/60f03f7371627df1cbbfbbff7f07c50b1fcfb858.png)

Has anyone encountered the same issue and is there a fix?

---

<div class="post-metadata">

**Author:** ![JBeatty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbeatty/32/52252_2.png) [@JBeatty](https://community.hubspot.com/u/JBeatty)\
**Post date:** [May 9, 2023, 10:17pm UTC](https://community.hubspot.com/t/crm-object-function-limit-value-overrides-total-value/80833/2 "2023-05-09T22:17:40Z")

</div>

Hi [@MEmpeño](https://community.hubspot.com/t5/user/viewprofilepage/user-id/565856),

From the docs [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/cms/hubl/functions:)

> - `offset` is the offset to use for the next batch of results.
> 
> * * *

So it is returning the offset you would use to get the next batch of objects. For example if you do:

`{% set jobs_init = crm_objects('job', 'offset=20&limit=20') %}`

You should get something like this:

`{has_more=true, offset=40, total=20, results=[{20 job result listed}]`

Let me know if I am misunderstanding what you are saying or if you have any other questions.

Best,
