Dec 5, 202210:42 AM - edited Dec 5, 202210:44 AM
Member
Using HubL variables in the crm_object function
SOLVE
I want to pass a query parameter into the crm_object function like this:
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.
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 %}
If this answer solved your question, please mark it as the solution.
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 %}
If this answer solved your question, please mark it as the solution.