Using Contact property as parameter in Custom Modules
Hey, I'm trying to pull the Deals associated with a Contact record into an email template module, but I'm having trouble with the crm_associations() function.
It works when the contact ID is hard coded:
% set contact_deals = crm_associations("682151", 'HUBSPOT_DEFINED', 4, "", 'dealname,amount,dealstage,createdate,closedate') %
But it does not work I pass the Contact ID as a variable (I've checked and the type is string).
% set contact_deals = crm_associations(contact.hs_object_id, 'HUBSPOT_DEFINED', 4, "", 'dealname,amount,dealstage,createdate,closedate') %
I've tried forcing the conversion to string, but did not work.
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !