-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcustom-menu.gs
23 lines (21 loc) · 1.01 KB
/
custom-menu.gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////// MENUs
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// MANUAL JSON DOWNLOAD (MISSING FILE) AND REFRESH URLs MANUALLY (ALL OF THEM)
// .addItem --> The first parameter is the Name that will be displayed on the Menu, the Second parameter is the function this menu-object will call
function onOpen() {
var ui = SpreadsheetApp.getUi();
// Or DocumentApp or FormApp.
ui.createMenu('Manual JSON Download')
.addItem('Company_1', 'Company_1_MissingJSON')
.addSeparator()
.addItem('Company_2', 'Company_2_MissingJSON')
.addSeparator()
.addItem('Company_3', 'Company_3_MissingJSON')
.addSeparator()
.addToUi();
ui.createMenu('Refresh URLs')
.addItem('Refresh all URLs Spreadsheets', 'Config_RefreshURLSpreadSheet')
.addSeparator()
.addToUi();
}