回答編集履歴
2
typo
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
const dat = createRequiredBlob();
|
26
26
|
|
27
|
-
const blo
|
27
|
+
const blob = dat[0];
|
28
28
|
|
29
29
|
const param = dat[1];
|
30
30
|
|
1
名前
test
CHANGED
@@ -22,7 +22,13 @@
|
|
22
22
|
|
23
23
|
function sender() {
|
24
24
|
|
25
|
-
const
|
25
|
+
const dat = createRequiredBlob();
|
26
|
+
|
27
|
+
const blog = dat[0];
|
28
|
+
|
29
|
+
const param = dat[1];
|
30
|
+
|
31
|
+
const applicant = param["B2"]; // "B2"のところを※8で申請者の右に指定したセル番地にかえてください ※9
|
26
32
|
|
27
33
|
const to = ""; // あてさきに設定するアドレス(webmaseter@example.com) ※1
|
28
34
|
|
@@ -30,11 +36,13 @@
|
|
30
36
|
|
31
37
|
to: to,
|
32
38
|
|
39
|
+
name: applicant, //fromの名前がかわるはず。
|
40
|
+
|
33
|
-
subject: "申請", // 件名 ※2
|
41
|
+
subject: "申請 (申請者:"+applicant +")", // 件名 ※2
|
34
42
|
|
35
43
|
body: "添付ファイルをご確認ください", // 本文 ※3
|
36
44
|
|
37
|
-
attachments: [blob.setName("休暇申請.pdf")] // ファイル名の変更可 ※4
|
45
|
+
attachments: [blob.setName("休暇申請("+applicant+").pdf")] // ファイル名の変更可 ※4
|
38
46
|
|
39
47
|
});
|
40
48
|
|
@@ -60,7 +68,9 @@
|
|
60
68
|
|
61
69
|
const tempSheetName = copySheet(spreadSheet, template, temporary);
|
62
70
|
|
63
|
-
|
71
|
+
const param = buildFillinParam(getLastData(ansSheet));
|
72
|
+
|
73
|
+
fillIn(spreadSheet, tempSheetName, param);
|
64
74
|
|
65
75
|
SpreadsheetApp.flush();
|
66
76
|
|
@@ -70,7 +80,7 @@
|
|
70
80
|
|
71
81
|
spreadSheet.deleteSheet(tempSheet);
|
72
82
|
|
73
|
-
return blob;
|
83
|
+
return [blob,param];
|
74
84
|
|
75
85
|
}
|
76
86
|
|