<?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 Using embed code in personalization tokens to share content in an email template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674489#M29856</link>
    <description>&lt;P&gt;I am trying to send video feedback to customers within an email template. I have embed code stored in personalization tokens that is updated weekly on an external database, then the property for that contact is updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The embed code will display correctly when it is pasted directly into the template, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;									&amp;lt;tr&amp;gt;
															&amp;lt;td class="pad" style="padding-top:21px;padding-bottom:21px;"&amp;gt;
																&amp;lt;div align="center"&amp;gt;&amp;lt;iframe src="https://grain.com/_/embed/highlight/QG5cHwwwYIATZIo5ClSOiC5M9IU6kg6bqdT7g22D?show_engagement=true&amp;amp;autoplay=false&amp;amp;origin=user_iframe" height="364" width="576" allow="fullscreen" allowfullscreen="true" frameborder="0"&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/div&amp;gt;
															&amp;lt;/td&amp;gt;
														&amp;lt;/tr&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-08-02 at 21.53.07.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71932iE9F13B37CED8AA0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-08-02 at 21.53.07.png" alt="Screen Shot 2022-08-02 at 21.53.07.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to fetch the embed code from a property using a personalization token, it does not show, instead it shows the embed code itself.&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;	&amp;lt;tr&amp;gt;
															&amp;lt;td class="pad" style="padding-top:21px;padding-bottom:21px;"&amp;gt;
																&amp;lt;div align="center"&amp;gt;{{ personalization_token('contact.teacher_video') }}&amp;lt;/div&amp;gt;
															&amp;lt;/td&amp;gt;
														&amp;lt;/tr&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-08-02 at 21.48.04.png" style="width: 842px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71934i06EB12FF4070A66E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-08-02 at 21.48.04.png" alt="Screen Shot 2022-08-02 at 21.48.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I am missing something in the formatting, and I am not very knowledgeable in code, so was directed to this forum by Hubspot support. Any help would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 21:00:12 GMT</pubDate>
    <dc:creator>patrickll</dc:creator>
    <dc:date>2022-08-02T21:00:12Z</dc:date>
    <item>
      <title>Using embed code in personalization tokens to share content in an email template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674489#M29856</link>
      <description>&lt;P&gt;I am trying to send video feedback to customers within an email template. I have embed code stored in personalization tokens that is updated weekly on an external database, then the property for that contact is updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The embed code will display correctly when it is pasted directly into the template, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;									&amp;lt;tr&amp;gt;
															&amp;lt;td class="pad" style="padding-top:21px;padding-bottom:21px;"&amp;gt;
																&amp;lt;div align="center"&amp;gt;&amp;lt;iframe src="https://grain.com/_/embed/highlight/QG5cHwwwYIATZIo5ClSOiC5M9IU6kg6bqdT7g22D?show_engagement=true&amp;amp;autoplay=false&amp;amp;origin=user_iframe" height="364" width="576" allow="fullscreen" allowfullscreen="true" frameborder="0"&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/div&amp;gt;
															&amp;lt;/td&amp;gt;
														&amp;lt;/tr&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-08-02 at 21.53.07.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71932iE9F13B37CED8AA0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-08-02 at 21.53.07.png" alt="Screen Shot 2022-08-02 at 21.53.07.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to fetch the embed code from a property using a personalization token, it does not show, instead it shows the embed code itself.&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;	&amp;lt;tr&amp;gt;
															&amp;lt;td class="pad" style="padding-top:21px;padding-bottom:21px;"&amp;gt;
																&amp;lt;div align="center"&amp;gt;{{ personalization_token('contact.teacher_video') }}&amp;lt;/div&amp;gt;
															&amp;lt;/td&amp;gt;
														&amp;lt;/tr&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-08-02 at 21.48.04.png" style="width: 842px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71934i06EB12FF4070A66E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-08-02 at 21.48.04.png" alt="Screen Shot 2022-08-02 at 21.48.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I am missing something in the formatting, and I am not very knowledgeable in code, so was directed to this forum by Hubspot support. Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 21:00:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674489#M29856</guid>
      <dc:creator>patrickll</dc:creator>
      <dc:date>2022-08-02T21:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using embed code in personalization tokens to share content in an email template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674560#M29858</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/427848"&gt;@patrickll&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to the community! Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/156228"&gt;@Pixl_Labs&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146956"&gt;@BarryGrennan&lt;/a&gt;&amp;nbsp;do you have any insight or suggestions for&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/427848"&gt;@patrickll&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for taking a look!&amp;nbsp; — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 23:02:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674560#M29858</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-08-02T23:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using embed code in personalization tokens to share content in an email template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674583#M29862</link>
      <description>&lt;P&gt;I'm not in front of my computer at the moment but this feels like the visual editor for email is rendering what you've entered as text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One workaround might be storing the url of the video as a personalization token instead of trying to put the whole iframe in there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in the code of your email you'd put something like:&lt;/P&gt;&lt;P&gt;&amp;lt;div&amp;gt;&amp;lt;iframe src="{personalization_token('contact.video_url')}"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't included the rest of your iframe perimeters there because writing code on a phone is hard &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;. For that same reason, double check the code I gave for typos.&lt;/P&gt;&lt;P&gt;But hopefully you get what I'm suggesting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="profile2022a" style="width: 100px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71500iE96AB1F9E9E277B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="profile2022a" alt="profile2022a" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Barry Grennan&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Website&lt;/A&gt; | &lt;A href="https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Contact&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 00:10:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674583#M29862</guid>
      <dc:creator>BarryGrennan</dc:creator>
      <dc:date>2022-08-03T00:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using embed code in personalization tokens to share content in an email template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674795#M29869</link>
      <description>&lt;P&gt;Unfortunately, the property has to be stored with the &amp;lt;iframe&amp;gt; code, as this is how it is taken from the database it is connected to. Separating the video link would require manually editing every property, as it's the embed link that is stored on the database. For context, the videos are embedded on our own platform - we want it to be emailed to customers as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why it cannot be accepted as code instead of a text string. It might be something to do with the property itself. I am not finding any examples online of properties containing code, so you might be onto something.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 11:47:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674795#M29869</guid>
      <dc:creator>patrickll</dc:creator>
      <dc:date>2022-08-03T11:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using embed code in personalization tokens to share content in an email template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674810#M29870</link>
      <description>&lt;P&gt;I'm not an expert in encoding but what's almost certainly happenig is the personalization token is being encoded as text rather than html&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so rather than&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;&amp;lt;iframe src="https://grain.com/_/embed/highlight/QG5cHwwwYIATZIo5ClSOiC5M9IU6kg6bqdT7g22D?show_engagement=true&amp;amp;autoplay=false&amp;amp;origin=user_iframe" height="364" width="576" allow="fullscreen" allowfullscreen="true" frameborder="0"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's rendering as&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;&amp;amp;lt;iframe src="https://grain.com/_/embed/highlight/QG5cHwwwYIATZIo5ClSOiC5M9IU6kg6bqdT7g22D?show_engagement=true&amp;amp;amp;autoplay=false&amp;amp;amp;origin=user_iframe" height="364" width="576" allow="fullscreen" allowfullscreen="true" frameborder="0"&amp;amp;gt;&amp;amp;lt;/iframe&amp;amp;gt;&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;You'll see the same happen if you paste your iframe directly into a richtext field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if thers some filter you could use, maybe something like:&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;{{ personalization_token('contact.teacher_video')|urldecode }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure though, try it out and have a look arround the filters if that doesn't work, maybe try some others&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/cms/hubl/filters" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/cms/hubl/filters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Worst case, I'd say you could use a split|first|last method as in &lt;A href="https://community.hubspot.com/t5/CMS-Development/Trying-to-use-regex-replace-to-pull-specific-content-from/td-p/442591" target="_blank" rel="noopener"&gt;this thread&amp;nbsp;&lt;/A&gt;to pull the url out of the personalization token. It can be a little tough to work out the split exactly, but I imagine you can achieve it that way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="profile2022a" style="width: 100px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71500iE96AB1F9E9E277B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="profile2022a" alt="profile2022a" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Barry Grennan&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Website&lt;/A&gt; | &lt;A href="https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Contact&lt;/A&gt;&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;</description>
      <pubDate>Wed, 03 Aug 2022 13:10:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Using-embed-code-in-personalization-tokens-to-share-content-in/m-p/674810#M29870</guid>
      <dc:creator>BarryGrennan</dc:creator>
      <dc:date>2022-08-03T13:10:57Z</dc:date>
    </item>
  </channel>
</rss>

