質問編集履歴
1
code
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,11 +6,11 @@
|
|
6
6
|
|
7
7
|
```ここに言語を入力
|
8
8
|
|
9
|
-
function Slack() {
|
9
|
+
function SlackPTR() {
|
10
10
|
|
11
11
|
var ss = SpreadsheetApp.getActiveSpreadsheet();
|
12
12
|
|
13
|
-
var sh = ss.getSheetByName("
|
13
|
+
var sh = ss.getSheetByName("test");
|
14
14
|
|
15
15
|
var data = sh.getDataRange().getValues();
|
16
16
|
|
@@ -24,29 +24,37 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
|
27
|
+
const q251046 = (e) => {
|
28
28
|
|
29
|
-
|
29
|
+
if(!e.value) return;
|
30
30
|
|
31
|
-
|
31
|
+
const rng = e.range;
|
32
32
|
|
33
|
-
|
33
|
+
const c = rng.getColumn();
|
34
34
|
|
35
|
-
|
35
|
+
if(c !== 3) return;
|
36
36
|
|
37
|
-
|
37
|
+
const payload = {
|
38
38
|
|
39
|
-
'
|
39
|
+
'text':e.value,
|
40
40
|
|
41
|
-
|
41
|
+
};
|
42
42
|
|
43
|
-
|
43
|
+
const options = {
|
44
44
|
|
45
|
-
|
45
|
+
'method':'post',
|
46
46
|
|
47
|
-
|
47
|
+
'contentType':'application/json',
|
48
48
|
|
49
|
+
'payload':JSON.stringify(payload),
|
50
|
+
|
51
|
+
};
|
52
|
+
|
53
|
+
const url = 'xxx';
|
54
|
+
|
55
|
+
UrlFetchApp.fetch(url, options);
|
56
|
+
|
49
|
-
}}
|
57
|
+
}}}
|
50
58
|
|
51
59
|
|
52
60
|
|