1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Teamsの最近のチャット一覧をcsvにまとめる

Last updated at Posted at 2024-01-17

背景

Teamsチャットが盛んに活用されてるもののよく「どのチャットだっけ?」って迷子になる。チャットへの直リンク取得してメモしたりしたいがブラウザ版Teamsを起動しないといけなかったりで面倒。ということでワンタッチで最近のチャット一覧(各チャットへのリンク含む)を取得するフローを作成してみました。

方法

image.png
からの
image.png
で、Create_CSV_tableの出力をコンテンツに指定してメールで送るなりOneDriveに保存するなりでOKですが、日本語が文字化するのでこちらで説明されている通り、

concat(decodeUriComponent('%EF%BBEBF'),body('Create_CSV_table'))

にする必要有り。

また、チャットへのリンクはこちら記載の通りだが、{messageID}を省略した下記の形でOK。

https://teams.microsoft.com/l/message/{chatId}/?tenantId=<tenantId>?context={"contextType":"chat"}

所感

最初はExcelとかSharepointのコネクタでApply to eachで1行ずつ書き込んで、みたいなことしようとしてましたがテストしたらめちゃくちゃ遅く、最終的にこの方法に落ち着きました。2秒以内くらいで処理完了してくれて快適です。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?