Question

Microsoft Teams Attachments to Slack



Show first post
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

29 replies

Userlevel 7
Badge +12

Hi @nickMarkatus

 

I think I can see the issue with the example you shared. There’s a space in the link, so Slack isn’t reading it as one whole url (which would display the image)

You can see in the screenshot that the first half of the text is blue, meaning that Slack knows it’s a link, but there’s a space between ‘Freigegebene’ and ‘Dokumente’, which is causing the link to break; that’s why the text after that is grey/white and not blue. 

 

For the text ‘ <attachment id”…’ that looks like it’s coming from the message content in MS teams. You could get rid that part of the text using a Formatter by Zapier step (you’d need to add it before the Slack step). Let’s check that we can get your attachment working the way that you need it and then we can look at sorting out that text for you (it might be best to do that in a new thread, so we can keep things clean and make it easier for users to jump in and help you without needing to read this full thread). 

 

 

Userlevel 1
Badge

Hi @Danvers 

thank you for your Message. Ok, we focus the Link (Attachment).

What options do I have to open the link without spaces? The link comes automatically from Teams.

 

Userlevel 1
Badge

@Danvers @Troy Tessalone 

i found a new Problem. i think, this is the main Problem. The URL from the SharePoint is locked. I can open the URL only when, i logged in. It is possible to upload the Attachment Image to Zapier?

Userlevel 7
Badge +12

Hi @nickMarkatus!

Good detective work on that one! I don’t think that it’s going to be possible to attach the file from Microsoft Teams if there’s no publicly available link to the file. 

 

You would either need a file field (you can spot this because the field will say ‘Exists but not show’ in the Zap) or you need a link to the file that you don’t need to be logged in to see. If you’re able to get that url, you could add it in the field that Troy highlighted above:

Just a thought, but are you able to upload the file to OneDrive? I’ve not tried this before myself, but if you have a One Drive and Teams account on the same log in, you might be able to upload the attachment to OneDrive in the Zap, and then add the file to the Slack message. The OneDrive action will give you a ‘File’ output that you can add to this field:

 

Let us know if you give that a go!