Preview image and video URLs in Microsoft Teams alerts

⌘K
  1. Home
  2. Docs
  3. Alerts and Reminders
  4. Virto Alerts use cases
  5. Preview image and video URLs in Microsoft Teams alerts

Preview image and video URLs in Microsoft Teams alerts

Use case description

We are going to work with the “Video Content Plan” list, which contains data about videos published on the corporate YouTube channel. We want to notify the team of newly added videos using the Video Alerts & Reminder App. When a new item with a video description, preview image, and video URL appears in the list, we need an automatic alert with a clickable preview image to go to the Microsoft Teams channel.

First, choose the right source list. For a new notification, find a SharePoint list with “Image” and “Hyperlink” column types.

preview_image_and_video_urls_in_microsoft_teams_alerts_1
Source list

Choose this list when you create a new alert.

preview_image_and_video_urls_in_microsoft_teams_alerts_2
Choose list

To make this the chosen alert trigger, make sure you select “New items are added” in the “Change Type” field.

preview_image_and_video_urls_in_microsoft_teams_alerts_3
Change type

Add a complex link to the alert in the “Message View” block as described in the “Complex links” section. The title source is “Preview Image,” and the URL source is “Display Item URL.”

preview_image_and_video_urls_in_microsoft_teams_alerts_4
Add complex link
preview_image_and_video_urls_in_microsoft_teams_alerts_5
Preview image

Step 2: Add the webhook

To send this alert to the Teams channel, you need to create and insert the webhook by following these simple steps and inserting the webhook URL in the “Recipients” section. Remember to save the new alert.

preview_image_and_video_urls_in_microsoft_teams_alerts_6
Webhook

Check the new alert you have just created.

preview_image_and_video_urls_in_microsoft_teams_alerts_7
New alert

Step 3: Enjoy the result

Once someone adds a new video to the list, an email notification containing the clickable image will now be sent to the chosen recipients. When users click the image, they will be redirected to the YouTube video.

preview_image_and_video_urls_in_microsoft_teams_alerts_8
Changes in the list
preview_image_and_video_urls_in_microsoft_teams_alerts_9
Email alert

The same message will appear in the chosen Teams channel.

preview_image_and_video_urls_in_microsoft_teams_alerts_10
Teams alert

How can we help?