Coder Social home page Coder Social logo

sardinedude1 / desk-schedule-auto-population Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

A Google Apps Script Project which will generate and auto populate a circulation desk schedule from a single or multiple Google Calendars.

License: MIT License

JavaScript 100.00%
library library-automation public-library google-script google-calendar library-free time-saver google-sheets

desk-schedule-auto-population's Introduction

/*
WELCOME TO THE READ ME FILE!

This file will walk you through how to set up your Desk Schedule Auto Populate script which will generate a desk schedule
randomly populated with staff/events from your Google Calendar(s).

Set-up

  1. Adding a Google Calendar

      The first variable that needs to be filled in is the calendar_ids variable.
      This is a list of one or more google calendar ids.

      To find a google calendar id first navigate to your google calendar.
      Then, on the left side of the screen, select the "Options for" menu and click on "Settings and Sharing."
      Towards the bottom of the page there will be an entry for Calendar ID.
      Copy the whole ID and paste it into the calendar_ids variable in the google script.
      Be sure to include single quotes around the calendar ID and commas separating the calendar IDs if you have more than one.

      EXAMPLE: var calendar_ids = ['your-calendar-id', 'another-calendar-id'];


  2. Adding a Google Drive Folder ID

      The second variable in the script is the location the new desk schedule will be stored in your google drive.

      To find the google drive folder ID, navigate to the folder you wish to save the desk schedule to in your google drive.
      Then get the link to the folder by copying the url.
      Then find the ID by copying the string of letters and numbers that come after /folders/ but before ?usp.

      EXAMPLE
        Link: https://drive.google.com/drive/folders/1j-HH3B7Q9bPvSsWeArTUA2l1I6aMvfAlbjAakq9JV2E?usp=sharing
        Folder ID: 1j-HH3B7Q9bPvSsWeArTUA2l1I6aMvfAlbjAakq9JV2E
      
      Then paste the folder ID between the parentheses on line 12. Be sure to include single quotes around the id.

      EXAMPLE
        var folder = DriveApp.getFolderById('1d9T8QafEFlHbgKLblv6YySqVW4ZhfI5w');


  3. Adding a Format Sheet

      The third variable in the script is the format_sheet variable.
      The format_sheet is the ID of a Google Sheet which contains a blank desk schedule.
      One has been added to this repository.

      To find the google sheet ID, navigate to the sheet you wish to use as a template and open it in your browser.
      Then get the link to the sheet by copying the url.
      Then find the ID by copying the string of letters and numbers that come after /spreadsheets/d/ but before /edit?usp.

      EXAMPLE
        Link: https://docs.google.com/spreadsheets/d/1j-HH3B7Q9bPvSsWeArTUA2l1I6aMvfAlbjAakq9JV2E/edit?usp=sharing
        Sheet ID: 1j-HH3B7Q9bPvSsWeArTUA2l1I6aMvfAlbjAakq9JV2E

      You are more than welcome to create your own template but keep a few things in mind:
        1. The title of the sheet will always appear in cell A1.
        2. At the moment, staff names and scheduled time will appear in Columns A-F and Rows 4-8. This will be addressed in the next update.
        3. The case-sensitive keyword "fill" should be present in the cells you wish to populate with a staff member's name.
        4. The cell sizes will be the same in the final product as it is in the format sheet.
      

  4. Automatic Email Notification when a Desk Schedule is Created
      The fourth variable to fill in is the email address of the person you wish to send the newly generated desk schedule.
      This is most likely yourself.

      If you do not wish to send an automatic email leave this blank.

      EXAMPLE
        Auto Email : var emailAddress = '[email protected]';
        No Email: var emailAddress = '';


  5. Email Subject Line
      The final variable to fill in is the subject line of the email you wish to send.
      This can be any string of characters.

      EXAMPLE:
        var emailSubject = 'Desk Schedule';


  6.  Automatically Run the Script on a Certain Day
      If you would like the script to run without running it yourself, you can set up a trigger.
      
      To set up a trigger, click on the clock icon on menu located on the left side of your screen.
      Then click on Add Trigger on the bottom right of the screen.
      
      The function you wish to run is Start.
      The second option should be Head.
      The third option should be Time-Driven.
      The fourth opiton should be how often you want to run the script.
      The fifth option is dependant on the fourth.

      On the right side of the pop-up box you can choose how quickly or if you will be notified should the script fail.

END

*/

desk-schedule-auto-population's People

Contributors

sardinedude1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.