LoginSignup
0
0

ロングテキストエリアはFlowでは使えない?

Last updated at Posted at 2023-03-09

【質問】

We have a "custom object" that represents a text message action, but salesforce throws a STRING_TOO_LONG error when we try to send a text message that exceeds 255 characters. However, in Object Manager, we made sure that the field that stores the message body has a data type of "Long Text Area(131072)."

テキスト メッセージ アクションを表す「カスタム オブジェクト」がありますが、255 文字を超えるテキスト メッセージを送信しようとすると、Salesforce は STRING_TOO_LONG エラーをスローします。ただし、オブジェクト マネージャーでは、メッセージ本文を格納するフィールドのデータ型が「長いテキスト領域(131072)」であることを確認しました。

調べてみると

While long text areas aren't supported in formula fields, you can use them as input for workflow actions or in process builder, e.g. to copy a long text area field to another record or to shorten it into a text field (see https://help.salesforce.com/s/articleView?id=000333937&type=1).

As Salesforce is migrating from workflows and process builder to flows, that feature needs to be supported in flows as well.

いテキスト領域は数式フィールドではサポートされていませんが、ワークフロー アクションやプロセス ビルダーの入力として使用できます。長いテキストエリア項目を別のレコードにコピーするか、テキスト項目に短縮します (https://help.salesforce.com/s/articleView?id=000333937&type=1 を参照)。

Salesforce はワークフローとプロセスビルダーからフローに移行しているため、その機能はフローでもサポートされる必要があります。

If you're just collecting the URL to populate into a URL field on the resulting record, you should just be able to use a text input on the screen (instead of the URL input) and then you can add a length validation in the 'Validate Input' section.

結果のレコードの URL フィールドに入力する URL を収集しているだけの場合は、(URL 入力の代わりに) 画面上でテキスト入力を使用できるようにするだけでよく、その後、「」に長さの検証を追加できます。 「入力を検証」セクション。

Apexを使って回避する

このアイデアを見る限りはロングテキスト項目は数式としてフローでは使えないみたいです。

https://ideas.salesforce.com/s/idea/a0B8W00000J8A6cUAF/long-text-areas-in-flow

Apexならロングテキスト項目が使えるので改行コードを区切り文字としてSprilt関数でList変数に格納できれば、処理は可能だと思います。

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