レコード作成時に起動するレコードトリガーフローでChatter投稿を行うと、メンションがグレーアウトする場合があります。
これは、組織の共有設定でオブジェクトが「非公開」となっており、共有ルールでアクセス権を与えている場合に発生します。
Salesforceの処理順序では、レコードトリガーフローの処理の後に共有ルールの評価が行われます。
このため、非同期パスを利用して、共有ルールでレコードが共有された後にフローが実行されるようにする必要があります。
下記のシナリオを例にChatter投稿を実行するフローサンプルを紹介します。
▼シナリオ
前提: 組織の共有設定で対象のオブジェクトが「非公開」と設定されており、共有ルールでアクセス権を付与している
商談レコードの作成時に、商談レコードのフィードにChatter投稿で取引先の所有者をメンションし、レコードが作成されたことを通知します。
※ 注意
注意事項 : テキストテンプレートを利用する場合は、「プレーンテキストとして表示」に変更してください。
・ユーザーにメンションする場合: @[UserId]
・ユーザーグループにメンションする場合: @[CollaborationGroupId]
・レコードの URL を送信する場合: https://MyDomain.lightning.force.com/{!$Record.Id}/view
004259633

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.