0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Salesforceのカスタマイズ画面はフローのScreenで実装する(動的画像表示)

Last updated at Posted at 2022-01-30

要件

Salesforceのカスタマイズ画面はLWCまたLightningComponentの開発になりますが、できればノーコードまたローコードのFlowのScreenで解決したいです。今回はレコード関連の画像は画面に彫りこみたいです。
SFDCのFlowにDisplayImageは静的な画像しか表示できないです。レコード関連の動的に画像を表示する案です。
→表示テキストで、Image表示変数で画像を表示する

画像のContentVersionIdを取得する

ファイルのDocumentIdを求めて、それからContentVersionにIDを求める
ContentDocumentのId
image.png
あと、Select id from ContentVersion where ContentDocumentId = 'XXXX'
そのIDはContentVersionIDです。

Screenに画像表示

image.png

表示変数を定義

image.png

値:

<img src="/sfc/servlet.shepherd/version/download/{!GetStandardImage.img_file_id__c}", alt="画像", width="360" height="480" />

表示テクスト(入力テクストではない)

image.png

ページ編集にフローを配置する

image.png
効果:
image.png

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?