Using HubL variables in the crm_object function

I want to pass a query parameter into the crm_object function like this:

JMadrone_0-1670254939228.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.

Hi, @JMadrone :waving_hand: 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

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 %}

Yes! Thank you so much.