Salesforce Flow Builderでテキストテンプレートを使用している場合、ハイパーリンク内で使用されている差し込み項目が、コンテンツをコピー&ペーストした後に正しく表示されないという問題が発生することがあります。
この問題は「リッチテキストとして表示」モードに特有のものです。
ユーザーがリッチテキストモードで、差し込み項目変数(例:{!$Record.Id})を含むハイパーリンクをコピーして別のリソースに貼り付けると、ブラウザによってリンク構造が以下のように書き換えられます。
{ }) は URL エンコードされた同等の記号 ( %7B, %7D) に変換されます。その結果、URL が動的な変数から「解決された絶対文字列(リテラル)」へと変更されてしまうため、実行時にフローが差し込み項目を正しく解釈できなくなります。
{!$Record.Id}貼り付け後の値(リッチテキストモード):https://[my-domain].lightning.force.com/builder_platform_interaction/%7B!$Record.Id%7D結果: URL に解決済みのドメインパスとエンコードされた文字が含まれています。
原因
この動作は、ウェブブラウザ(例:Chrome、Edge)の想定された動作であり、Salesforceの不具合ではありません。
リッチテキストエディタからテキストをコピーすると、ブラウザは基となるHTMLを処理します。
事象を回避または修正するには、以下のいずれかの方法を実行してください 。
コンテンツをコピーする前に表示モードを切り替えることで、ブラウザーによる URL の変換を防止できる 。
移行元となるテキストテンプレートを開く。
すでにコンテンツを貼り付け済みの場合は、以下の手順でリンクを修正する 。
移行先テンプレートでハイパーリンクを強調表示する。
リンクをコピーする代わりに、新しいテンプレートにテキストを入力する。
005232647

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.