0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SalesforceでFlex プロンプトテンプレートを設定しよう

Posted at

本橋孝昭です

今回はFlexテンプレートについて解説します

参考Trailheadはこちら

今回は取引先責任者に「興味ある商品」(InterestedProduct__c)選択リスト項目を作成

image.png

商品に「商品の種別」(ProductType__c)選択リスト項目を作成

image.png

今回生成する内容は
「取引先責任者に挨拶メールを作成する。その時に取引先責任者の「興味ある商品」(InterestedProduct__c)選択リスト項目の値と商品の「商品の種別」(ProductType__c)選択リスト項目の値が一致する商品一覧を示す」

という設定を行います

プロンプトビルダーを作成

まずはプロンプトビルダー作成をします

プロンプトテンプレート種別は「Flex」

ソースは取引先責任者オブジェクトと商品オブジェクトを設定します

image.png

これでプロンプトテンプレートを作成します

image.png

しかしこれでは
「その時に取引先責任者の「興味ある商品」(InterestedProduct__c)選択リスト項目の値と商品の「商品の種別」(ProductType__c)選択リスト項目の値が一致する商品一覧を示す」
という設定はできません

では、どうすればいいか。
フローを作成してプロンプトテンプレートの取り組みます

フローを作成

以下のフローを作成します

image.png

image.png

image.png

image.png

image.png

プロンプトビルダーを修正

プロンプトビルダーから先ほど作成したフローを選択しプロンプトビルダーを設定する

image.png

こちらで
「その時に取引先責任者の「興味ある商品」(InterestedProduct__c)選択リスト項目の値と商品の「商品の種別」(ProductType__c)選択リスト項目の値が一致する商品一覧を示す」
という設定が完了しました。
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?