This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| function deleteDMsByChannelId() { | |
| const token = 'slack_api_token'; // Slack APIのUserトークン(xoxp-)を設定 | |
| const channel_id = 'im_id'; // 削除するダイレクトメッセージのチャンネルID(DMの中のメッセージのリンクの「archive/****」の部分)を設定 | |
| const api_endpoint = 'https://slack.com/api/conversations.history?channel=' + channel_id; | |
| // DMのメッセージ履歴を取得 | |
| const response = UrlFetchApp.fetch(api_endpoint, { | |
| 'headers': { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub insertRowAndCopyValue() | |
| ' | |
| ' insertRowAndCopyValue | |
| ' T列に値が入っていたら下に行を追加して、その行に各種値をコピーする(一行目は除く) | |
| ' | |
| ' | |
| Dim lastRow As Long | |
| Dim i As Long | |
OlderNewer