0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

みんながアクセスできるSlackアプリへのリンクを作成する

Posted at

背景

右クリックから取得できるSlackアプリへのリンクは各ユーザー固有のものになっており、他のユーザーがクリックしても該当するアプリに飛べない
これだとワークフローなどで仕組み化するときに不便なので、みんながアクセスできるSlackアプリへのリンクを作りたい

結論

Deep Link を作成すればいい

どうするか?

Deep Link は次のような構成になっている

slack://app?team={TEAM_ID}&id={APP_ID}

TEAM_ID はワークスペースの識別子で、Slack URL の冒頭部分から確認できる

例: https://sample-workspace.slack.com/
sample-workspace

APP_ID はアプリの識別子で、Slackアプリの Marketplace URL から確認できる

例: https://sample-workspace.slack.com/marketplace/B05XYZH4XGX--sample-app
B05XYZH4XGX

上記の例に基づくと、以下のようになる

slack://app?team=sample-workspace&id=B05XYZH4XGX

補足

実は @App名 でメンションできちゃうので、メッセージで共有する場合には別に Deep Link いらない

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?