Using YouTube with Microsoft Flow

This article was originally published on November 8, 2018. Product interfaces and features may have changed. Some original images are not yet available.

Exploring Microsoft Flow, I noticed you can connect to YouTube. So, naturally, I had to try it out.

The Good

There are three great triggers you can use:

  • Perform an action when a channel uploads a video
  • Perform an action when you upload a video
  • Perform an action when a new video matches a search

Original image unavailable.

The Bad

There are NO actions. Meaning, you can’t do anything with the YouTube connector after the trigger step.

Original image unavailable.

The Awesome

There’s always a workaround. For my purposes, I wanted a “button trigger” that would go out and get a playlist from YouTube and write the video titles and links to daily tweets or a SharePoint list. This is an easy way to create a resource library. Cultivate a playlist, get the RSS feed for it and have it write the items to SharePoint for you.

  1. Go to the YouTube playlist and copy the URL. For my example it looks like:

    Watch the original embedded video


    Original image unavailable.
  2. Replace everything before the = sign with

    https://www.youtube.com/feeds/videos.xml?playlist_id

  3. End result should resemble

    https://www.youtube.com/feeds/videos.xml?playlist_id=PLmEJaQr5TFs6UqJZixls59tQQtO4MO1Qy

Then in Microsoft Flow, you can use an RSS connector to get RSS feed items and use the result how you like!
Original image unavailable.

And we have to circle back to the “when a new video matches a search” trigger. Imagine the possibilities:

  • Notify me when my favorite fandom is the subject of a video
  • Add new videos with “SharePoint 101” in the title to a SharePoint list. Start an approval process, and if approved add the video to our resource library
  • Collect videos that are about Lawrence, Kansas or University of Kansas for a research project I’m working on

Preserved with its original publication date. Original archived version.