Skip to content

Commit 57b6020

Browse files
fix: write OOO event type using advanced Calendar service (#437)
* Sample for the AppSheet and Apps Script video tutorial * Added Calendar advanced service and updated function to add OOO event type. * Changed the blockOutCalendar function synce OOO events are new supported by the Calendar API. * Update Code.js * Update README.md * Update README.md --------- Co-authored-by: Pierrick Voulet <6769971+PierrickVoulet@users.noreply.github.com>
1 parent 82c5c04 commit 57b6020

File tree

5 files changed

+268
-225
lines changed

5 files changed

+268
-225
lines changed

solutions/automations/folder-creation/Code.js

+18-22
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
/**
2-
* Copyright 2022 Google LLC
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
/*
2+
Copyright 2022 Google LLC
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
https://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
*/
1613

17-
// To learn how to use this script, refer to the video: https://youtu.be/Utl57R7I2Cs
14+
/*
15+
This function will create a new folder in the defined Shard Drive.
16+
You define the Shared Drive by adding its ID on line number 26.
17+
The parameter 'project' is passed in from the AppSheet app.
18+
Please watch this video tutorial to see how to use this script: https://youtu.be/Utl57R7I2Cs
19+
*/
1820

19-
/**
20-
* This function will create a new folder in the defined Shard Drive. You define
21-
* the Shared Drive by adding its ID on line number 28. The parameter `project`
22-
* is passed in from the AppSheet app. Please watch this video tutorial to see
23-
* how to use this script: https://youtu.be/Utl57R7I2Cs.
24-
*/
2521
function createNewFolder(project) {
2622
const folder = Drive.Files.insert(
2723
{

solutions/automations/folder-creation/README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This code sample is part of a video tutorial on how to combine AppSheet and Apps Script.
44

5-
You can watch the video tutorial to find out how to use the sample at https://youtu.be/Utl57R7I2Cs.
5+
You can watch the video tutorial to find out how to use the sample.
66

7-
See the [Google Apps Script Documentation](https://developers.google.com/apps-script/advanced/drive) for additional information about the advanced Google Drive services.
7+
<p align="center">
8+
<iframe width="560" height="315" src="https://www.youtube.com/embed/Utl57R7I2Cs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
9+
</p>
10+
11+
See the [Google Apps Script Documentation](https://developers.google.com/apps-script/advanced/drive) for additional information about the advanced Google Drive services.

0 commit comments

Comments
 (0)