question

AlexMa-7729 avatar image
0 Votes"
AlexMa-7729 asked AlexMa-7729 commented

Send file to Teamschannel with Powershell

Hello people.

Is there a way to send a files from PowerShell to a Teamchannel?


The following conditions have to be given:

  • Sending it via PowerShell Script

  • The file that arrives at the Teamschannel always has to have the same name (I will update the content of the file and send it regularly to the Teamschannel) -> overwriting existing file (this excludes a possible solution via mail)
    • The file always has to get saved at the same position in Sharepoint (this also excludes a possible solution via mail aswell)


(What I am actually trying to do:
I am creating an csv export on a server. This Export is needed for a PowerBI report which is why the name and saving path has to stay the same the entire time AND
has to be at a path that PowerBI has access to. This would be Sharepoint in my case since files shared in Teams are getting saved there.)



office-teams-windows-itprowindows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered AlexMa-7729 commented

Hi @AlexMa-7729 ,

As your issue is related to Teams, please add the Teams tag for better support.
Hope this link could be helpful.
https://childebrandt42.wordpress.com/2020/07/14/using-powershell-to-automate-file-adds-to-teams-and-sharepoint-online/
Tip: This answer contains the content of a third-party website. Microsoft makes no representations about the content of these websites. We provide this content only for your convenience.

Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@IanXue-MSFT

Thank you for your answer!

Unfortunately this doesnt help since this solution uses third-party and requires login to sharepoint.


Best Regards,

Alex

0 Votes 0 ·