アクション、スクリプト、トリガー、アクションを設定する
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
4つのアクション スクリプトとトリガー、アクションがあり、製品ギャラリーの画像を並べ替えて、GraphQLを介してAzure関数で取得して使用するために使用されます。
アクションスクリプト
アクションスクリプトを追加するには:
-
メニュー バーで、Manage
をクリックします。 -
Manageページで、「Scripts」をクリックします。
-
Scriptsページで、+ Scriptをクリックし、Scriptダイアログ ボックスで次の操作を行います。
-
Nameフィールドに「M.Asset - Product Gallery - Get removed asset」と入力します。
-
Typeリストから、「Action」を選択します。
-
Descriptionフィールドに、M.Asset - Product Gallery - Get removed asset
-
-
「 Save」をクリックします。
-
追加したアクションの横にあるEnable controlスイッチをクリックしてアクティブにします(オン)。
-
作成したアクションスクリプトをクリックし、Editをクリックします。
-
Get removed assetアクションのコードを貼り付けます。
-
「 Build」をクリックします。
-
「 Save 」をクリックして変更を保存します。
-
手順3から9を繰り返して、次のアクション スクリプトを作成します。リンクをクリックすると、関連するコードが表示されます。
アクションを追加するには:
-
メニュー バーで、Manage
をクリックします。 -
Manageページで、「Actions」をクリックします。
-
「 New action」をクリックします。
-
New actionダイアログボックスで、次の項目を定義します。
-
Nameフィールドに「Product Gallery - Get removed assets」と入力します。
-
Labelフィールドに「Product Gallery - Get removed assets」と入力します。
-
Typeリストから、「Action script」を選択します。
-
Scriptフィールドに「M.Asset - Product Gallery - Get removed asset」と入力します。
-
-
「 Save」をクリックします。
-
手順3と4を繰り返して、次のアクションを作成します。
-
Product Gallery - アセットのソート順を取得して保存する
-
Product Gallery - 変更されたアセットを取得する
-
Product Gallery - リンクされたアセットの公開リンクを作成する
-
トリガー
トリガーを追加するには:
-
メニュー バーで、Manage
をクリックします。 -
Manageページで、「Triggers」をクリックします。
-
「 New trigger」をクリックします。
-
New triggerダイアログ ボックスのGeneralタブで、次の項目を定義します。
-
Nameフィールドに「Product Gallery - Get removed assets」と入力します。
-
Descriptionフィールドに「Product Gallery - Get removed assets」と入力します。
-
Objectiveフィールドに「Entity Modification」と入力します。
-
Execution typeリストから、「In progress」を選択します。
-
-
「 Conditions 」タブをクリックし、次の操作を行います。
-
Add definitionフィールドからAsset (M.Asset)を選択します。
-
+ Conditionをクリックし、Product Gallery (ProductToGalleryAsset) removed item is not emptyを選択します。
-
-
「 Actions 」タブをクリックし、次の操作を行います。
-
「 Pre-commit actions」で、「 Add action 」をクリックし、「 M.Asset - Product Gallery - Get removed asset action」を選択します。
-
「 Save and close」をクリックします。
-
-
確認ウィンドウで、OKをクリックしてトリガーをアクティブにします。
Product Gallery - Save sort order of assets triggerを作成するには:
-
メニュー バーで、Manage
をクリックします。 -
TriggersページでNew triggerをクリックし、New triggerダイアログ ボックスのGeneralタブで、次の項目を定義します。
-
Nameフィールドに「Product Gallery - Save sort order of assets」と入力します。
-
Descriptionフィールドに「Product Gallery - Save sort order of assets」と入力します。
-
Objectiveフィールドに「Entity Modification」と入力します。
-
Execution typeリストから、「In background」を選択します。
-
-
「 Conditions 」タブをクリックし、次の操作を行います。
-
Add definitionフィールドからAsset (M.Asset)を選択します。
-
+ Conditionをクリックし、Product Gallery (ProductToGalleryAsset) removed item is not emptyを選択します。
-
-
「 Actions 」タブをクリックし、次の操作を行います。
-
「 Post actions」で、「 Add action 」をクリックし、「 M.Asset - Product Gallery - Save sort order of assets」を選択します。
-
「 Save and close」をクリックします。
-
-
確認ウィンドウで、OKをクリックしてトリガーをアクティブにします。