IFTTTを使用して、オブジェクトデータをGoogle シートと同期する
Liferay DXP 7.4+
ここでは、 IFTTTを使用して、Liferay Objectと Google シート間の同期タスクをトリガーするWebhooksの使用方法について説明します。 この方法でデータを同期するには、IFTTTのアカウント、Googleスプレッドシート、およびアクティブなDXP 7.4インスタンスが必要です。 DXPインスタンスには、Googleスプレッドシートにデータを送受信するための必要なフィールドを持つ公開オブジェクトも必要です。
オブジェクトデータをGoogle シートに同期させる
以下の手順で、オブジェクトデータをGoogle シートに同期させます。
-
IFTTT にサインインし、 作成をクリックします。
![[作成]をクリックします。](https://resources.learn.liferay.com/images/dxp/latest/en/low-code/objects/integrating-objects-with-third-party-services/using-google-sheets-with-objects/using-ifttt-to-sync-object-data-with-google-sheets/images/01.png)
-
「 この条件が満たされた場合 」ステップの 「追加 」をクリックします。
![[If This]ステップの[Add]をクリックします。](https://resources.learn.liferay.com/images/dxp/latest/en/low-code/objects/integrating-objects-with-third-party-services/using-google-sheets-with-objects/using-ifttt-to-sync-object-data-with-google-sheets/images/02.png)
-
Webhooksを選択します。

-
トリガータイプは、[Receive a web request]をクリックします。

-
イベント名 を入力し、 トリガーの作成をクリックします。

-
クリックして を追加し、 次にそれ ステップを実行します。
![[Then That]のステップの追加をクリックします。](https://resources.learn.liferay.com/images/dxp/latest/en/low-code/objects/integrating-objects-with-third-party-services/using-google-sheets-with-objects/using-ifttt-to-sync-object-data-with-google-sheets/images/06.png)
-
Google スプレッドシートを選択します。

-
アクションタイプは、 [Add row to spreadsheet]をクリックします。
![[スプレッドシートに行を追加する]をクリックします。](https://resources.learn.liferay.com/images/dxp/latest/en/low-code/objects/integrating-objects-with-third-party-services/using-google-sheets-with-objects/using-ifttt-to-sync-object-data-with-google-sheets/images/08.png)
-
アクションを設定し、 [Create Action]をクリックします。
注Googleアカウントに接続すると、連携したいGoogleアカウントを選択し、そのアカウントのファイルにアクセスするIFTTT権限を付与するためのウィンドウが開きます。
-
続行をクリックします。
![[続行]をクリックします。](https://resources.learn.liferay.com/images/dxp/latest/en/low-code/objects/integrating-objects-with-third-party-services/using-google-sheets-with-objects/using-ifttt-to-sync-object-data-with-google-sheets/images/10.png)
-
確認して、 [完了]をクリックします。
![確認後、[完了]をクリックします。](https://resources.learn.liferay.com/images/dxp/latest/en/low-code/objects/integrating-objects-with-third-party-services/using-google-sheets-with-objects/using-ifttt-to-sync-object-data-with-google-sheets/images/11.png)
-
プロセスが完了すると、 アプレット はすでに 接続されています。
![確認後、[完了]をクリックします。](https://resources.learn.liferay.com/images/dxp/latest/en/low-code/objects/integrating-objects-with-third-party-services/using-google-sheets-with-objects/using-ifttt-to-sync-object-data-with-google-sheets/images/12.png)
-
作成したら、 Webhook アイコン → ドキュメント をクリックし、生成された Webhook URLをコピーします。


-
Liferay インスタンスで、コピーした URL を使用して、新しいオブジェクト エントリが追加されるたびに webhook エンドポイントにリクエストを送信するオブジェクト アクション を定義します 。
