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?

フロー:商談で最終活動日から一定数の日付が過ぎたら通知する

Posted at

事前準備

商談オブジェクトにカスタム項目を追加

最終活動日が15日前ならtrueになる。

AND(
ISBLANK(LastActivityDate),
LastActivityDate < Today() -15
)

image.png

カスタム通知設定の作成

設定--> 通知ビルダー --> カスタム通知

image.png

設定--> 通知ビルダー --> 通知の配信設定

先程作ったカスタム通知のところで、下記のように編集をクリックします

image.png

image.png

フローの作成

新規フロー --> 最初から開始を選んで右下の次へをクリック

image.png

スケジュールトリガーフローを選択して右下の作成をクリック

スケージュールを設定します

image.png

オブジェクトを選択をクリックします

image.png

以下の条件をセットします

  • 事前に作成した最終活動日が15日前という数式項目がtrue
  • isCloseという項目がfalse (まだ完了していない商談を対象とします)

image.png

レコードの取得要素を追加します。

image.png

テキスト型のコレクション変数を追加します

image.png

OwnerIdsというコレクション変数にこの商談レコードの所有者Idを割り当てます。(これが通知先)

image.png

ハイパーリンク用の数式変数を追加します

LEFT({!$Api.Enterprise_Server_URL_620} , FIND('/services', {!$Api.Enterprise_Server_URL_620})) & "/lightning/r/kenmei__c/"& {!$Record.Id} &"/view"

image.png

テキストテンプレートを追加します

商談名: {!$Record.Name}

商談名をクリックしたらこのレコードにリダイレクトされるようにハイパーリンクを設定します

image.png

{!HYPERLINK}

image.png

カスタム通知を送信アクションを追加します

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?