Skip to content

Commit

Permalink
fix: write OOO event type using advanced Calendar service (#437)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
chanelgreco and PierrickVoulet authored Jan 16, 2024
1 parent 82c5c04 commit 57b6020
Show file tree
Hide file tree
Showing 5 changed files with 268 additions and 225 deletions.
40 changes: 18 additions & 22 deletions solutions/automations/folder-creation/Code.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

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

/**
* This function will create a new folder in the defined Shard Drive. You define
* the Shared Drive by adding its ID on line number 28. The parameter `project`
* is passed in from the AppSheet app. Please watch this video tutorial to see
* how to use this script: https://youtu.be/Utl57R7I2Cs.
*/
function createNewFolder(project) {
const folder = Drive.Files.insert(
{
Expand Down
8 changes: 6 additions & 2 deletions solutions/automations/folder-creation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

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

See the [Google Apps Script Documentation](https://developers.google.com/apps-script/advanced/drive) for additional information about the advanced Google Drive services.
<p align="center">
<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>
</p>

See the [Google Apps Script Documentation](https://developers.google.com/apps-script/advanced/drive) for additional information about the advanced Google Drive services.
Loading

0 comments on commit 57b6020

Please sign in to comment.