質問編集履歴
2
Codeマークを挿入しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
よろしくお願いいたします。
|
6
6
|
|
7
7
|
使用スクリプト
|
8
|
+
```
|
8
9
|
function sendMessage(e) {
|
9
10
|
|
10
11
|
const [timeStamp, email, date, applicant,mproxy,dproxy, documents, to , number, type , folda, mauthorizer,msurrogate,dauthorizer,dsurrogate ] = e.values;
|
@@ -15,11 +16,8 @@
|
|
15
16
|
sheet.getRange(row, 1).setValue(`${row}`);
|
16
17
|
|
17
18
|
const recipient = abc@abc.jpp'; //申請先のメールアドレス
|
18
|
-
|
19
19
|
const subject = '<受付連絡の申請';
|
20
|
-
|
21
20
|
const name = 印申請窓口'
|
22
|
-
|
23
21
|
let body = '';
|
24
22
|
body += の申請を受付ました。\n\n';
|
25
23
|
~申請内容省略~;
|
@@ -28,18 +26,17 @@
|
|
28
26
|
body += 'の承認の手順>\n';
|
29
27
|
|
30
28
|
body += 承認者は、以下URLをクリックしてください。\n';
|
31
|
-
|
32
29
|
body += 承認URL)⇒https://script.google.com***M/exec'; /L
|
33
30
|
body += `?row=${row}`;
|
34
31
|
|
35
32
|
GmailApp.sendEmail(recipient, subject, body, { name: name });
|
36
33
|
|
37
34
|
}
|
38
|
-
|
39
35
|
function doGet(e) {
|
40
36
|
const row = e.parameter.row;
|
41
37
|
const sheet = SpreadsheetApp.getActiveSheet();
|
42
38
|
const values = sheet.getRange(row, 1, 1, 19).getValues()[0];
|
43
39
|
const [no,timeStamp, email, date, applicant,mproxy,dproxy, documents, to , number, type , folda, mauthorizer,msurrogate,dauthorizer,dsurrogate] = values;
|
44
40
|
|
45
|
-
sheet.getRange(row, 19).setValue('承認');
|
41
|
+
sheet.getRange(row, 19).setValue('承認');
|
42
|
+
```
|
1
改行を編集しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,8 +15,11 @@
|
|
15
15
|
sheet.getRange(row, 1).setValue(`${row}`);
|
16
16
|
|
17
17
|
const recipient = abc@abc.jpp'; //申請先のメールアドレス
|
18
|
+
|
18
19
|
const subject = '<受付連絡の申請';
|
20
|
+
|
19
21
|
const name = 印申請窓口'
|
22
|
+
|
20
23
|
let body = '';
|
21
24
|
body += の申請を受付ました。\n\n';
|
22
25
|
~申請内容省略~;
|
@@ -24,7 +27,8 @@
|
|
24
27
|
|
25
28
|
body += 'の承認の手順>\n';
|
26
29
|
|
27
|
-
body += 承認者は、以下
|
30
|
+
body += 承認者は、以下URLをクリックしてください。\n';
|
31
|
+
|
28
32
|
body += 承認URL)⇒https://script.google.com***M/exec'; /L
|
29
33
|
body += `?row=${row}`;
|
30
34
|
|