10.1

SingleItemアクティビティタイプ

日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

SingleItemアクティビティタイプは、マーケティングオートメーションがコンタクトをキャンペーンに登録する際のロジックを定義するのに役立ちます。

マーケティングを行う際にSingleItemアクティビティタイプを使い、その後すぐに別のアクティビティタイプに進みます。例えば、連絡先にメールを送信し、その後、ユニークで個人的なコード付きのSMSを送信することができます。

項目構成

SingleItemアクティビティタイプには以下の構造が含まれています。

Illustration showing the structure of the SingleItem activity type.

性質

SingleItemアクティビティタイプは以下のプロパティを持ちます:

入る経路

1

アウトイングパス

1

タイトルとサブタイトル

アクティビティタイプのパラメータが定義されると表示されます。

論理的立場

他の SingleItem 活動の前後で。

サポートされているCSSクラス

SingleItemアクティビティタイプは以下のCSSクラスをサポートしています:

CSSクラス

未定義

定義

marketing-action

marketing-action-undefined1.png
marketing-action-defined1.png

other-element

other-undefined1.png
other-defined1.png

TypeScript実装のサンプル

これはSingleItemアクティビティタイプの実装例です:

sample/src/sample-single-item-activity-type.ts

import { SingleItem } from '@sitecore/ma-core';

export class SampleSingleItemActivityType extends SingleItem {

getVisual(): string { const subTitle = this.isDefined ? 'Count: ' + this.editorParams.count : ''; const cssClass = this.isDefined ? '' : 'undefined';

// The CSS class can either be marketing-action or other-element. return `

Sample single item ${subTitle}

\`; }

get isDefined(): boolean { /* The editorParams property value is the object that is serialized from the activity editor. If the activity is undefined, the editorParams property will evaluate to {}. */ return Boolean(this.editorParams.count); } }

この記事を改善するための提案がある場合は、 お知らせください!