GoogleCalendarAPI logoZapierFormatterCLIAPI@1.0.4 logoGoogleMailV2API logo

カレンダー情報から、リマインドメール送信

Googleカレンダーの予定を確認し、参加者へ指定のタイミングでリマインドメールを送信します。 gmailの直前にcode by zapierで曜日を挿入することもできます。 code by zapierの設定で「App & event」→Eventは「Run Python」Input Dataに「日本の開始日時に変換」とテキスト入力。そして、それに該当する名前のoutputを選択。 次に、以下のコードを入れる。 from datetime import datetime, timedelta, timezone # ZapierのFormatterステップでフォーマットされた日時データを使用 input_date = inputData['日本の開始日時に変換'] # 日時をパース(入力された日時は既にJSTと仮定) dt = datetime.strptime(input_date, "%Y年%m月%d日 %H時%M分") # 曜日を日本語で取得(日曜日: 0, 月曜日: 1, ..., 土曜日: 6) days_jp = ["月", "火", "水", "木", "金", "土", "日"] weekday_jp = days_jp[dt.weekday()] # 最終的な形式に整形 output = dt.strftime(f"%Y年%m月%d日({weekday_jp})%H時%M分") return {'日本の開始日時に変換': output}

へむへむcreated by へむへむ
How Zapier works (57 sec)
How Zapier works (57 sec)
Try this Zap FREE for 14 days

Trusted at companies large and small

This Zap works in 3 steps

  • 1.5 minutes to set up
  • Get back 1.2 hrs /week
  • 3 people use this zap

This Zap uses the following 3 apps

  • Google Calendar logo
  • Formatter by Zapier logo

More ways to use these popular apps!

Check out all the other ways you can connect Google Calendar and Formatter by Zapier.
Learn More