<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Association label module in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/976996#M39064</link>
    <description>&lt;P&gt;Hi Hamashakar,&lt;BR /&gt;&lt;BR /&gt;I managed to put together a workflow code snippet to fetch all deal associated contacts and their association label. Here is an example... the resoult.&lt;BR /&gt;Social_security_number + Firstname + Lastname + ContactType(thel abel)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZoMi_0-1715790700028.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/117554i42B8EC1234404628/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZoMi_0-1715790700028.png" alt="ZoMi_0-1715790700028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What remains is now to create a dynamical quote template module.js and addapt it to use as you sugested some identefiers for placing the information in the quote. In my case this identifyers is the association label (ContactType).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 17:08:47 GMT</pubDate>
    <dc:creator>ZoMi</dc:creator>
    <dc:date>2024-05-15T17:08:47Z</dc:date>
    <item>
      <title>Association label module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/967464#M38807</link>
      <description>&lt;P&gt;Hi &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone... need help in creating a module for quote template. The module should simply fetch all deal associated contact with their labels.&lt;/P&gt;&lt;P&gt;ex. &amp;nbsp;Fullname,&lt;SPAN&gt;&amp;nbsp; association label&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 17:20:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/967464#M38807</guid>
      <dc:creator>ZoMi</dc:creator>
      <dc:date>2024-04-26T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Association label module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/967625#M38809</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/752236"&gt;@ZoMi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HubSpot doesn't offer a built-in "Association Label" module that you can directly add to quote templates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a custom code that utilizes the HubSpot Workflows API to fetch the necessary data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a workflow that triggers on "Deal: New" or another relevant event.&lt;/P&gt;
&lt;P&gt;Within the workflow, add a custom code snippet action.&lt;/P&gt;
&lt;P&gt;This code will use the Workflows API to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Access the current deal properties.&lt;/LI&gt;
&lt;LI&gt;Use the associations endpoint of the HubSpot CRM API to retrieve all associated contacts for the deal.&lt;/LI&gt;
&lt;LI&gt;Loop through each associated contact and use the getAssociationLabel method (available in the Workflows API) to fetch the corresponding label for that contact.&lt;/LI&gt;
&lt;LI&gt;Combine the contact's full name with the retrieved label and store this information in a custom deal property (e.g., "Associated Contacts with Labels").&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Make use of the knowledge base for more help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.hubspot.com/object-settings/create-and-use-association-labels" target="_blank"&gt;Create and use association labels (hubspot.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hope this helps - Happy to help further!!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Thank you very much and have a great one!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warm regards&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 23:55:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/967625#M38809</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-04-26T23:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Association label module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/968016#M38818</link>
      <description>&lt;P&gt;Thanks Humasshankar,&lt;BR /&gt;&lt;BR /&gt;I allresdy have a flow that populates properties baesd on contact association label, but&amp;nbsp;I wanted directly to loop trough deal associated contacts and based on their association label add them to specific places in my quote. So this is not posible with labels... :-(. Maybe it's easier to fetch the data from workflow properties, but this I'll need to research on how to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option1:&lt;/P&gt;&lt;P&gt;I found the following in some threads and I was wondering if it could be used?, and if yes then if it could be modefied to fetch my defined "TypId"s "labels"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set quote_associated_object = crm_associations(template_data.quote.associated_objects.deal.hs_object_id, "USER_DEFINED", "association type ID", "limit=200", "property field that you need to fetch from the custom object - internal name", false) %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option2:&lt;BR /&gt;Is it posibel&amp;nbsp;to pre-define the quote code with my labels and based on "TypeId" or "label" achive what I want?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using this endpoint : &lt;EM&gt;&lt;STRONG&gt;&lt;A href="https://api.hubapi.com/crm/v4/associations/0-3/0-1/labels" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v4/associations/0-3/0-1/labels&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I get this responce:&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; "results": [&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "HUBSPOT_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 3,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": null&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "USER_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 3,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": "Borgensperson 2"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "USER_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 15,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": "Firmatecknare 4"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "USER_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 5,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": "Borgensperson 3"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "USER_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 9,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": "Firmatecknare 1"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "USER_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 17,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": "Kredittagare"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "USER_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 11,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": "Firmatecknare 2"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "USER_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 7,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": "Borgensperson 4"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "USER_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 1,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": "Borgensperson 1"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "category": "USER_DEFINED",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeId": 13,&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "label": "Firmatecknare 3"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; ]&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 17:02:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/968016#M38818</guid>
      <dc:creator>ZoMi</dc:creator>
      <dc:date>2024-05-02T17:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Association label module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/974937#M38997</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;I'm new at this and not a developer, but I have the will to learn, and to do so, I need some help and guidance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As described before, I would like to get the associated contacts' (firstname, lastname) and their association label (in my case, e.g., "Guarantor_1," "Guarantor_2," "Guarantor_3").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how far I've progressed, but I'm not getting what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, someone provide a simple example of how to achieve this. I'm confident that if I just get an example for at least one, then I'll manage myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;const hubspot = require("@hubspot/api-client");&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; const dealId = "Register-ID"; // This is the deal Record-ID&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;exports.main = async (event, callback) =&amp;gt; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; const hubspotClient = new hubspot.Client({ apiKey: process.env.TOKEN });&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; try {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Fetch associated contacts for the deal&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const apiResponse = await hubspotClient.apiRequest({&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; method: "GET",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; path: `/crm/v4/objects/deals/${dealId}/associations/contacts`,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; headers: {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accept: "application/json",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "content-type": "application/json",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Process the contacts data from apiResponse&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const associatedContacts = apiResponse.body.results;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const contactNames = associatedContacts.map(contact =&amp;gt; `${contact.properties.firstname} ${contact.properties.lastname}`);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Callback with specific values (dealname and associated contact names)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; callback({&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; outputFields: {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; associatedContacts: contactNames.join(", "), // Concatenate contact names&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; } catch (err) {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log("ERROR:", err);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 May 2024 11:04:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/974937#M38997</guid>
      <dc:creator>ZoMi</dc:creator>
      <dc:date>2024-05-11T11:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Association label module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/974988#M38999</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/752236"&gt;@ZoMi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for adding more background on your standing - that helps!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To your point&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it is possible to pre-define your quote code to create a dynamic quote template which incorporates associated contacts based on your pre-defined labels&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Make your quote code with placeholders where you want to insert the contact information based on labels.&lt;/LI&gt;
&lt;LI&gt;Try using tokens or specific markers to identify these placeholders (Instance- {{Borgensperson_1}}, {{Firmatecknare_2}}).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Make use of Hubspot's templating language or your quote editor's functionality to dynamically populate the placeholders with contact information&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use the associations/0-3/0-1/labels endpoint, as you have mentioned to retrieve all your association labels.&lt;/LI&gt;
&lt;LI&gt;Loop through the retrieved labels array.&lt;/LI&gt;
&lt;LI&gt;For each label, use conditional statements to check the label or typeId&lt;/LI&gt;
&lt;LI&gt;Based on the matching label or typeId, identify the corresponding contact information using the HubSpot CRM API&lt;/LI&gt;
&lt;LI&gt;consider using the GET /crm/v4/objects/contacts endpoint to fetch contacts based on association with the deal&lt;/LI&gt;
&lt;LI&gt;Once you have the contact information, populate the corresponding placeholder in your quote code with the retrieved data for &amp;nbsp;name, email, and more.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Help guide on Quote - &lt;A href="https://knowledge.hubspot.com/quotes/use-quotes" target="_blank"&gt;Create and share quotes (hubspot.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hope this helps - Happy to help further!!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Thank you very much and have a great one!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Warm regards&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 16:19:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/974988#M38999</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-05-11T16:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Association label module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/976996#M39064</link>
      <description>&lt;P&gt;Hi Hamashakar,&lt;BR /&gt;&lt;BR /&gt;I managed to put together a workflow code snippet to fetch all deal associated contacts and their association label. Here is an example... the resoult.&lt;BR /&gt;Social_security_number + Firstname + Lastname + ContactType(thel abel)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZoMi_0-1715790700028.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/117554i42B8EC1234404628/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZoMi_0-1715790700028.png" alt="ZoMi_0-1715790700028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What remains is now to create a dynamical quote template module.js and addapt it to use as you sugested some identefiers for placing the information in the quote. In my case this identifyers is the association label (ContactType).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 17:08:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Association-label-module/m-p/976996#M39064</guid>
      <dc:creator>ZoMi</dc:creator>
      <dc:date>2024-05-15T17:08:47Z</dc:date>
    </item>
  </channel>
</rss>

