# Using HubL variables in the crm\_object function

**URL:** <https://community.hubspot.com/t/using-hubl-variables-in-the-crm-object-function/70569>\
**Category:** CMS Development\
**Created:** [December 5, 2022, 3:42pm UTC](https://community.hubspot.com/t/using-hubl-variables-in-the-crm-object-function/70569 "2022-12-05T15:42:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JMadrone](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JMadrone](https://community.hubspot.com/u/JMadrone)\
**Post date:** [December 5, 2022, 3:42pm UTC](https://community.hubspot.com/t/using-hubl-variables-in-the-crm-object-function/70569/1 "2022-12-05T15:42:38Z")

</div>

I want to pass a query parameter into the crm\_object function like this:

![JMadrone_0-1670254939228.png](https://d2qpr2jzcazej7.cloudfront.net/optimized/3X/4/c/4cbe465dd726c218c28efa1f957124f2dc9d9d18_2_690x71.png)

What is the correct syntax for doing this?

I have tried enabling the module for the programmable email beta, but this is not going to be an email template, it is a website page template module. In either case the programmable email beta option didn’t resolve the issue either.

---

<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 6, 2022, 7:58pm UTC](https://community.hubspot.com/t/using-hubl-variables-in-the-crm-object-function/70569/2 "2022-12-06T19:58:26Z")

</div>

Hi, @JMadrone 👋 Thanks for reaching out! Hey, @Teun @alyssamwilie @Jnix284, do you have any tips or troubleshooting steps you can share with @JMadrone?

Thank you very much! — Jaycee

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [December 6, 2022, 8:00pm UTC](https://community.hubspot.com/t/using-hubl-variables-in-the-crm-object-function/70569/3 "2022-12-06T20:00:16Z")

</div>

The object ID is expecting a number, but request.query\_dict returns a string. If you add |int to the end of your request it’ll change the value into an integer and crm\_object should except it.

`{% set job_id = request.query_dict['job_id']|int %}`

---

<div class="post-metadata">

**Author:** ![JMadrone](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JMadrone](https://community.hubspot.com/u/JMadrone)\
**Post date:** [December 6, 2022, 8:26pm UTC](https://community.hubspot.com/t/using-hubl-variables-in-the-crm-object-function/70569/4 "2022-12-06T20:26:39Z")

</div>

Yes! Thank you so much.
