Teams

Share To Teams without Javascript loading

If you missed it, today on 06/24/2019 – Microsoft launched the Share To Teams functionality. This allows you to load a .js and easily share content to Teams. Read the blog post here and the technical documentation here.

When you have the ability and permissions to load the js, do it. This is the fasted way. However, not everyone has access to a system where they can ad-hoc add a js file. In my case, this wordpress site does not allow me to load additional js files unless I go up in my subscription. Challenge accepted, how can we achieve the same thing without a js load.

Well, when we look at the url that is being called from the js and when we look at the technical documentation, we see this:

Part 1: https://teams.microsoft.com/share?href=

Part 2: preview=true

Part 3:referrer=

So, we can now reconstruct the url based on these parts. You will have to encode the url but there are tons of websites and tools out there.

The full url for the share button for this article is:

https://teams.microsoft.com/share?href=https%3A%2F%2Fjethroseghers.com%2F2019%2F06%2F24%2Fshare-to-teams-without-javascript-loading&preview=true&referrer=jethroseghers.com

Let’s finish it up with a nice Teams Button, connect the link to it, and done

teams

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

%d bloggers like this: