I have a list of YouTube Videos and they render as hyperlinks in the body of my email. Using the Video ID, I'd like to convert these URLs to render an embedded video and/or thumbnail video in the email.
Any ideas?
Sure, here's an example.
There are two key elements
one is the <htmlpassthrough> tag, which tells Alteryx to treat text inside of it as HTML.
The second is using the "embed" link for the youtube video, so instead of https://www.youtube.com/watch?v=oTywTT_sQb4, you would use https://www.youtube.com/embed/oTywTT_sQb4. You'll notice that that both links are pretty similar, basically replacing "watch?v=" with "embed/"
Hope this helps!
Hi @EmilieG33
This would be cool, but I'm not currently aware of a way to make this work and none of my PCXML edits have worked. There are some obstacles to getting the Composer PCXML to accept this because it is not a supported content type like text, table, image, etc
Hi,
to add to this, most email clients don't support embedded video at all. You can add a youtube video to the PCXML generated by Alteryx, and Alteryx will render it just fine, but most email clients will completely strip this element.
There are a number of security reasons for this, but you might want to look into a different option, like embedding an image that is a link to a video. Note that most of these solutions will likely require some amount of HTML, although there are lots of guides online.
@CassC wrote:You can add a youtube video to the PCXML generated by Alteryx, and Alteryx will render it just fine
You can add a youtube video to the PCXML generated by Alteryx, and Alteryx will render it just fine
Fun! Could you share an example?