CMS Development

TCarbuccia
参加者 | Diamond Partner
参加者 | Diamond Partner

Find a resource with its ID in a quote template

解決

Hello,

 

Is it possible to find a custom object using its HubSpot ID in the quote builder?

This resource isn't linked to my deal; I only have its ID.

 

I haven't been able  to find documentation on this.

Thanks in advance,

Thomas

0 いいね!
1件の承認済みベストアンサー
kosalaindrasiri
解決策
トップ投稿者 | Solutions Partner
トップ投稿者 | Solutions Partner

Find a resource with its ID in a quote template

解決

Hey @TCarbuccia,

In HubSpot's quote templates, directly fetching a custom object by its ID using HubL isn't supported. HubL functions like crm_associations() are designed to retrieve associated records, not arbitrary ones by ID.

Hubspot Community Thread

 

Workarounds:

  1. Associate the Custom Object: Link the custom object to the deal or quote so it becomes accessible via crm_associations().
  2. Use CRM Cards or UI Extensions: For more advanced needs, consider building a CRM card or UI extension that fetches and displays the custom object data using HubSpot's APIs. ( https://developers.hubspot.com/docs/guides/api/crm/commerce/quotes & https://developers.hubspot.com/docs/guides/api/crm/extensions/crm-cards )
  3. Pre-fetch and Store Data: If the custom object data is known beforehand, you might store necessary details in a custom property on the quote or deal, making it accessible in the template.

For further details on quote template variables and customization, refer to HubSpot's developer documentation.

 

Regards,

Kosala

Kosala Indrasiri

CEO

Sanmark Solutions
Linkedin
Kosala Indrasiri
emailAddress
kosala@thesanmark.com
website
www.sanmarksolutions.com
linkedinwhatsapp
Book a Consultation

Did my post help answer your question? Mark this as a solution.

元の投稿で解決策を見る

2件の返信
kosalaindrasiri
解決策
トップ投稿者 | Solutions Partner
トップ投稿者 | Solutions Partner

Find a resource with its ID in a quote template

解決

Hey @TCarbuccia,

In HubSpot's quote templates, directly fetching a custom object by its ID using HubL isn't supported. HubL functions like crm_associations() are designed to retrieve associated records, not arbitrary ones by ID.

Hubspot Community Thread

 

Workarounds:

  1. Associate the Custom Object: Link the custom object to the deal or quote so it becomes accessible via crm_associations().
  2. Use CRM Cards or UI Extensions: For more advanced needs, consider building a CRM card or UI extension that fetches and displays the custom object data using HubSpot's APIs. ( https://developers.hubspot.com/docs/guides/api/crm/commerce/quotes & https://developers.hubspot.com/docs/guides/api/crm/extensions/crm-cards )
  3. Pre-fetch and Store Data: If the custom object data is known beforehand, you might store necessary details in a custom property on the quote or deal, making it accessible in the template.

For further details on quote template variables and customization, refer to HubSpot's developer documentation.

 

Regards,

Kosala

Kosala Indrasiri

CEO

Sanmark Solutions
Linkedin
Kosala Indrasiri
emailAddress
kosala@thesanmark.com
website
www.sanmarksolutions.com
linkedinwhatsapp
Book a Consultation

Did my post help answer your question? Mark this as a solution.

TCarbuccia
参加者 | Diamond Partner
参加者 | Diamond Partner

Find a resource with its ID in a quote template

解決

Hello,

I kind of suspected as much.

I'm going to try the workarounds you shared.

Thanks for your help!