![](https://daybreak-lab.com/wp-content/uploads/2024/05/woman-1-150x150.png)
Outlookの予定をGoogleカレンダーにも同期させたい
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
それならPower Automateで実現する方法を解説します
- Outlook予定をGoogleカレンダーに同期させる方法が分かる
コネクタ | アクション |
---|---|
コントロール | 条件 |
コントロール | 終了 |
データ操作 | アレイのフィルター処理 |
Googleカレンダー | カレンダーのイベントの一覧を表示する |
Googleカレンダー | イベントの削除 |
Googleカレンダー | イベントの更新 |
Googleカレンダー | イベントの作成 |
Content Conversion | Htmlからテキスト(プレビュー) |
MicrosoftのOutlookは、その高機能さや他のOfficeアプリケーションとのパワフルな連携によりビジネスシーンでとても多くの企業で利用されています。
ただ、その一方でプライベートでは完全無料なGoogleカレンダーを使っているという方もよく見かけます。
その中で時々耳にするのが、Outlookの予定を自分のGoogleカレンダーにも同期させて、仕事をしていないときにも予定を確認できるようにしたい、というものです。
今回はそのような方に向けて、Power Automateを使ってOutlook予定をGoogleカレンダーに同期させる方法を解説します。
今回解説するフローはOutlook→Googleカレンダーの一方通行のフローになります。
ただ、仕事とプライベートの境界線をはっきりさせるという意味でも、プライベート予定を仕事用Outlookに持ち込むことは得策ではないと考えていますので、このフローでも十分役に立つはずです。
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
是非ご参考にしてみてください。
Power Automateをまだ良く知らないという方はこちら
![](https://daybreak-lab.com/wp-content/uploads/2024/02/606c0a5f6ffe4b26c936ab74f87e6620-300x158.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/606c0a5f6ffe4b26c936ab74f87e6620-300x158.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/03/powerautomate-5flows-1-300x158.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/03/powerautomate-5flows-1-300x158.png)
今回作成するフローの全体像
今回作成するフローの全体像はこちらです。
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-2-954x1024.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-2-954x1024.png)
流れは大きく6ステップになります。
- Outlookイベント追加、更新、削除をトリガーにする
- 繰り返し予定を除外する
- Googleカレンダーのイベント一覧を取得する
- トリガーになったOutlookイベントがGoogleカレンダーに存在するかどうか確認する
- 存在している場合、削除もしくは更新をする
- 存在していない場合、新規登録する
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
分岐が多く分かりづらいかもしれませんが、次章からの解説通りに進めれば15分ほどで作成できますよ!
Power Automateフローの作成
▼トップ画面から「自動化したクラウドフロー」を選択
![](https://daybreak-lab.com/wp-content/uploads/2024/04/2024-04-26_23h12_22-1024x432.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/2024-04-26_23h12_22-1024x432.png)
▼任意のフロー名を付けて、Outlookトリガー「イベントが追加、更新、削除された時」を選択し作成をクリック
![](https://daybreak-lab.com/wp-content/uploads/2024/04/2024-04-26_23h13_40-1024x626.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/2024-04-26_23h13_40-1024x626.png)
▼同期させたいOutlookカレンダー、同期させたい期間を設定します
カレンダーID | 予定表 |
追跡する受信日 | 60 |
追跡された過去の日 | -15 |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-5.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-5.png)
▼「コントロール」→「条件」を追加
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-6-886x1024.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-6-886x1024.png)
▼Outlookで設定可能な「繰り返しの予定」はPower Automateで正しく処理がされないため、ここで除外するように設定をします。
左辺 | Outlook 繰り返し |
中央 | 次の値に等しくない |
右辺 | none (手入力) |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-7-1024x949.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-7-1024x949.png)
▼「はいの場合」=「繰り返しの予定」ということなので、「終了」アクションを”成功”として追加します。
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-8-724x1024.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-8-724x1024.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Tejimaru-Smile2-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Tejimaru-Smile2-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Tejimaru-Smile2-150x150.png)
「いいえの場合」にはアクションを追加せず次に進みましょう
▼Googleカレンダーコネクタの「カレンダーのイベントの一覧を表示する」アクションを追加します。
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-9-882x1024.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-9-882x1024.png)
▼以下の通りプロパティを入力します。
カレンダーID | 予定表 |
最小時間 | addDay(utcNow(), -15) |
最大時間 | addDay(utcNow(), 60) |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-10-1024x400.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-10-1024x400.png)
ここでは、最小時間がOutlookトリガーで設定した「追跡された過去の日」と、最大時間が「追跡する受信日」と合わせています。
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
ここで範囲を広げることで、だいぶ先もしくは前の予定までカバーできますが、あまり広げすぎると処理が遅くなってしまうので注意しましょう。
ここで、トリガーになったOutlookイベントが既にGoogleカレンダーに存在しているかを確認する準備をします。
▼「データ操作」→「アレイのフィルター処理」を追加する
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-11-887x1024.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-11-887x1024.png)
▼プロパティを次の通り入力します
差出人 | Googleカレンダー イベントリストアイテム |
左辺 | Googleカレンダー イベントリスト イベント説明 |
中央 | 次の値を含む |
右辺 | Outlook ID |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-12-1024x385.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-12-1024x385.png)
ここで、先程の「アレイのフィルター処理」アクションの結果をもとに、Googleカレンダーに既にイベントがあるかどうか判定します。
▼「コントロール」→「条件」アクションを追加します
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-13-893x1024.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-13-893x1024.png)
▼次の通りプロパティを入力します
左辺 | empty('アレイのフィルター処理') |
中央 | 次の値に等しい |
右辺 | false (手入力) |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-14.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-14.png)
「はいの場合」=「更新もしくは削除」となるので、さらにここで「更新」or「削除」の分岐を作ります。
▼「削除」→「はいの場合」、「更新」→「いいえの場合」とするため次の通り設定します。
左辺 | Outlook アクションの種類 |
中央 | 次の値に等しい |
右辺 | deleted(手入力) |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/2024-04-26_23h24_54-1.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/2024-04-26_23h24_54-1.png)
「はいの場合」はOutlook側のイベントが削除された時なので、Googleカレンダー側のイベントも削除するよう設定します。
カレンダーID | 予定表 |
イベントID | first(body(’アレイのフィルター処理’))?[’id’] |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-15.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-15.png)
「いいえの場合」はOutlook側のイベントが更新された時なので、Googleカレンダー側も更新します。
Outlook予定がHTML形式で登録されていると文字化けする不具合が発生するため、その回避するためプレーンテキストに変換します。
▼”html”で検索し「Content Conversion」→「Htmlからテキスト(プレビュー)」を選択します
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-17-1.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-17-1.png)
▼コンテンツにOutlookトリガーの動的な値「本文」を追加します
コンテンツ | Outlook 本文 |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-16.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-16.png)
先程のプレーンテキストを使って、次の通り更新アクションを設定します。
▼「Googleカレンダー」→「イベントの更新」を選択し、次の通り各プロパティを入力します
カレンダーID | 予定表 |
イベントID | first(body(’アレイのフィルター処理’))?[’id’] |
タイトル | Outlook 件名 |
開始時刻 | Outlook 開始時刻 z |
終了時刻 | Outlook 終了時刻 z |
説明 | HTMLからテキスト プレーンテキストコンテンツ ID: Outlook ID |
場所 | Outlook 場所 |
終日 | Outlook 終日イベントですか? |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-18-1024x683.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-18-1024x683.png)
「開始時刻」「終了時刻」が動的な値に出てこない場合は、検索窓で検索すると出てくるはずです。
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-19.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-19.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
Power Automateのバグのようなもので、2024年4月時点もまだ発生します。
最後は、トリガーとなったOutlookイベントがGoogleカレンダーになかった場合、つまり新規イベントだった時のアクションです。
▼更新アクションと同じように、まずはHTML文字化け回避のアクションを追加します。
コンテンツ | Outlook 本文 |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-20.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-20.png)
▼「Googleカレンダー」→「イベントの作成」を選択し、次の通り各プロパティを入力します
カレンダーID | 予定表 |
開始時刻 | Outlook 開始時刻 z |
終了時刻 | Outlook 終了時刻 z |
タイトル | Outlook 件名 |
説明 | HTMLからテキスト プレーンテキストコンテンツ ID: Outlook ID |
場所 | Outlook 場所 |
終日 | Outlook 終日イベントですか? |
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-21.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/OutlooktoGCal-21.png)
▼テストとして新規イベント追加しましたが、正しく同期されています。これで完成です。
![](https://daybreak-lab.com/wp-content/uploads/2024/04/2024-04-29_11h04_09-1024x794.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/04/2024-04-29_11h04_09-1024x794.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
ここまでお疲れ様でした!
まとめ:Outlook予定をGoogleカレンダーに同期させて業務効率化しよう
今回はPower Automateを使ってOutlook予定をGoogleカレンダーへ同期させるフローを解説しました。
会社でOutlook、プライベートではGoogleカレンダーを使っているという方も多いと思います。
複数のカレンダーを使うと、予定のダブルブッキングなど思わぬトラブルに繋がる可能性があります。
でも、会社ではGoogleカレンダーを使うことができないということも聞きます。
そのような時は、このフローを使ってみてください。
初心者の方にとっては少し難しく思えるかもしれませんが、この記事の手順に沿って一つずつ設定すれば、誰でも設定できます。
ぜひ、Power Automateをうまく活用して業務効率化をしていきましょう。
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Tejimaru-Smile2-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Tejimaru-Smile2-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Tejimaru-Smile2-150x150.png)
このブログではPower Automateを初めとしたローコードツール、Microsoft365系ソフトの効率的な使い方など定時帰りに役立つ情報を発信しています。
参考になりましたらぜひブックマーク登録をお願いします!
コチラの記事もオススメ!
![](https://daybreak-lab.com/wp-content/uploads/2024/03/5e933bcf33987245a394f80ea9159425-1-300x158.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/03/5e933bcf33987245a394f80ea9159425-1-300x158.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/03/teamsmention-24-300x158.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/03/teamsmention-24-300x158.png)
オススメのPower Automate教材はコチラ
![「作って学ぶPower Automate!現場で役立つ15個のフローを作って業務改善にすぐに役立てる」](https://daybreak-lab.com/wp-content/uploads/2024/06/2024-06-26_22h13_50-1024x391.png)
![「作って学ぶPower Automate!現場で役立つ15個のフローを作って業務改善にすぐに役立てる」](https://daybreak-lab.com/wp-content/uploads/2024/06/2024-06-26_22h13_50-1024x391.png)
![作って学ぶPower Automate for desktop!実践的なフローを30個以上作成して業務改善を実現](https://daybreak-lab.com/wp-content/uploads/2024/06/2024-06-26_22h14_06-1024x391.png)
![作って学ぶPower Automate for desktop!実践的なフローを30個以上作成して業務改善を実現](https://daybreak-lab.com/wp-content/uploads/2024/06/2024-06-26_22h14_06-1024x391.png)
![【Power Automate連携有】Office スクリプト入門講座](https://daybreak-lab.com/wp-content/uploads/2024/06/2024-06-26_22h14_22-1024x391.png)
![【Power Automate連携有】Office スクリプト入門講座](https://daybreak-lab.com/wp-content/uploads/2024/06/2024-06-26_22h14_22-1024x391.png)
![Teams × Power Automate 【Teams活用講座 超入門編】](https://daybreak-lab.com/wp-content/uploads/2024/06/2024-06-26_22h14_38-1024x391.png)
![Teams × Power Automate 【Teams活用講座 超入門編】](https://daybreak-lab.com/wp-content/uploads/2024/06/2024-06-26_22h14_38-1024x391.png)
![](https://daybreak-lab.com/wp-content/plugins/pochipp/assets/img/pochipp-logo-t1.png)
![](https://daybreak-lab.com/wp-content/plugins/pochipp/assets/img/pochipp-logo-t1.png)
▲これから自動化を学びたい方にぴったりの入門書です。PowerAutomateなどのウェブツールは日々進化しています。そのアップデートにより画面構成や用語など、UI自体に見直しが入ることがあります。数年前の書籍では、使われている画面や用語が自分のPC画面と若干違って戸惑うことがあります。その点、この書籍は2024年に発売されたばかりで安心です。
![](https://daybreak-lab.com/wp-content/plugins/pochipp/assets/img/pochipp-logo-t1.png)
![](https://daybreak-lab.com/wp-content/plugins/pochipp/assets/img/pochipp-logo-t1.png)
▲これからPower Automate Desktopを始めたい人にオススメの入門書です。基本的なところから実用的はフローの紹介まで幅広く書かれています。図解も多く最初の1冊にぴったり。自分も最初はこの書籍から入りました。PADの書籍選びに迷っているならこの書籍を激推します。
![](https://daybreak-lab.com/wp-content/plugins/pochipp/assets/img/pochipp-logo-t1.png)
![](https://daybreak-lab.com/wp-content/plugins/pochipp/assets/img/pochipp-logo-t1.png)
▲Power Automatedesktopをこれから学習する人にはこの書籍がオススメです。インプレス社の「できる」シリーズなので内容は間違いなし。イラストを多用しているので飽きずに最後まで読めます。しかも内容も初心者向けに丁寧に解説されているので、これ一冊でPower Automate Desktopの基礎はマスターできます。
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
![](https://daybreak-lab.com/wp-content/uploads/2024/02/Avatar_bg-orange-150x150.png)
ここで紹介している書籍はすべて実際に自分が学習に使ったものですので、安心してオススメできます。