Advertisements

Using YouTube with Microsoft Flow

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

chrome_2018-11-01_14-38-04.png

The Bad

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

chrome_2018-11-01_14-37-55.png

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:

    chrome_2018-11-01_14-48-10.png
  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!
chrome_2018-11-01_14-36-43.png

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
Advertisements

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: