![]() ![]() Events get created based on the timezone setting of your Google Apps Script (which defaults to the timezone of your computer).If you add a time for the event in the subject line, it needs to have "AM" or PM" appended to the time.Set up a time-driven trigger so that the getEmail function runs every 10 minutes, 30 minutes, or whatever interval suits you (I set mine to every 15 minutes):.Click "Advanced" and click the link to continue to use the script: You may get a screen saying Google hasn't verified the app.Click "Allow" when asked to give Google Apps Script permission to access your Gmail and Google Calendar.Back in Google Apps Script, select the getEmail function in the toolbar and click "Run" to run the script for the first time.Send yourself a test email to make sure the filter works correctly and the email shows up in your "EventsFromEmail" label. ![]() For instance, I set up a filter so that all emails sent to " go to my "EventsFromEmail" label: The recipient email address should use the + trick in Gmail to setup your Gmail filter. Setup a Gmail filter so that all emails you send to yourself automatically get labeled "EventsFromEmail" and skip the inbox (but still stay unread).Also decide if your date format is "US" or "ROW" (rest of the world) in line 10. The DEFAULT_EVENT_TIME in line 9 is 30 minutes (change if necessary).If you call the label something else, just make sure to change this line of the script. Create a Gmail label called "EventsFromEmail" (this is the GMAIL_LABEL variable in line 8).Create a new Google Apps Script project and replace the default code in the editor with the script.The Google Calendar event will invite and as guests to your event and "Need to schedule an appointment with John and Jane" gets added to the descriptoin of the event. ![]() So if the body of your email looks like this:Ĭc: to schedule an appointment with John and Jane To add a description to the event, just write the description in the second line of the email. If you want to invite guests to your event and know their email addresses, you simply write "cc: as the first line in the body of the email (multiple emails need to be separated by a comma).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |