IFTTTを使用してオブジェクトデータをGoogleスプレッドシートと同期する
Liferay 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 ステップに進みます。
![[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 を選択します。

-
トリガーの種類については、 Webリクエストの受信 をクリックしてください。

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

-
をクリックして を追加し、 のステップに進みます。次に、 ステップに進みます。
![[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 スプレッドシート を選択します。

-
アクションの種類については、 スプレッドシートに行を追加 をクリックしてください。
![[スプレッドシートに行を追加する]をクリックします。](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)
-
アクションを設定し、 アクションの作成をクリックします。
注記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エンドポイントへリクエストを送信する「オブジェクト」アクションを定義してください。
