Quote template using crm_associations() HubL function
Background
I'm trying to use the crm_associations() HubL function in a custom quote template to look up companies associated with the deal. A deal can have two companies: one is the purchaser, and the other is a consultant that assists the purchaser with installation of our product. We use custom association types to represent these different types of deal-to-company associations.
For each quote I'm trying to look up both companies so each one can be included on the quote template.
Problem
The problem is that no matter what I try, the crm_associations() function always returns an object with a total of 0 and an empty results array.
Here's an example of what I've tried that I think should work:
{% set deal_consultant = crm_associations(deal_id, "USER_DEFINED", 111, "limit=3") %}
I noticed that the function documentation mentions "Please note: for security purposes, of the HubSpot standard object types only the product, and marketing_event objects can be retrieved on a publicly accessible page."
Questions
Do quote templates count as "publicly accessible" pages? Is this the reason I'm not getting any results?
Is there a way to password protect a quote such that I can actually make use of the crm_associations function? Or is there any other way to show both companies on a quote?