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?

スクリーンフロー

Last updated at Posted at 2023-07-06

Flowに関するまとめページ に戻る

スクリーンフロー

You cannot validate on whether a field is blank in a screenflow (it's a pain).
However, for a lookup, you can set the "Required" option to "{!$GlobalConstant.True}"

画面フローではフィールドが空白かどうかを検証できません (面倒です)。
ただし、ルックアップの場合は、「Required」オプションを「{!$GlobalConstant.True}」に設定できます。

URLで変数に値を渡す

To actually pass the value, I think you need to set the parameters as follows.

/flow/Create_Case_for_Contact?inputAccountId={!Account.Id}&inputContactId={!Contact.Id}

Customize a Flow URL to Set Variable Values
https://help.salesforce.com/s/articleView?id=sf.flow_distribute_internal_url_variable.htm&type=5

画面フローにて前の画面の値が更新できない

各項目の"詳細"タブの設定値『入力を更新してフローの他の場所での変更を組み込む』になっていますか?

Winter'24のアップデートで画面に表示する項目の動作は2パターン選べるようになっていますのでご確認いただくと良いかと思います。

image.png

recordIdの値が取得できていないとき

image.png

Please check this article.

Share the Flow URL or Create a Custom Button, Link, or Web Tab
https://help.salesforce.com/s/articleView?id=sf.flow_distribute_internal_url.htm&type=5

image.png

フロー内での設定はあっていたのですが、Lightningページでフローを設定したときの「レコードのすべての項目値をフロー変数に渡します」

このチェックボックスをオンにしていなかったからでした

image.png

終了後にリダイレクトさせる

画面フローからリダイレクトさせるということでしょうか?
Auraコンポーネントを使って可能みたいです。

https://help.salesforce.com/s/articleView?id=sf.flow_concepts_finish_override.htm&type=5

レコード作成時のフローのエラー文言の変更

モーダルの高さ

image.png

In such cases you can add custom styles but they should be loaded by using loadStyle function, so the styles apply to the page and not just to LWC component.

Create styles.css with the following style:

.slds-spinner_container {

    background: unset

}

archive it to fixedStyles.zip and upload it as a static resource:
image.png

then reference it in your LWC component:

import { loadStyle } from 'lightning/platformResourceLoader';
import fixedStyles from '@salesforce/resourceUrl/fixedStyles';
export default class YourModal extends LightningModal {
    connectedCallback() {
        loadStyle(this, fixedStyles + '/styles.css');
    }
}

And this spinner glitch should be fixed.

I found the cause of the issue. The height of the modal can be adjusted but only up to 500px. This was required because of a Salesforce limitation which was removed with Winter 23. If your need more than 500px, I'll publish a fix tomorrow

問題の原因が見つかりました。モーダルの高さは調整できますが、最大 500px までです。これは、Winter 23 で削除された Salesforce の制限のため必要でした。500 ピクセルを超える必要がある場合は、明日修正を公開します。

納得しないようですね。

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?