0
0

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 2022-10-03

An Opportunity Validation Rule cannot refer to an Opportunity Line item because there could be 1 or 1000 Opportunity Line items. The Validation Rule would have no way to determine which record to validate against.

You could mark something on the Opportunity like a checkbox through automation if an Opportunity Line Item with Hardware in its name is added or removed from an Opportunity. You could then have your Validation refer to that Opportunity field.

It looks like you cannot reference the Opportunity Product Name in the Roll-Up criteria, so Flow is the better approach.

つまたは 1000 の商談品目がある可能性があるため、商談検証ルールは商談品目を参照できません。検証ルールには、検証するレコードを決定する方法がありません。

名前にハードウェアが含まれる商談品目が商談に追加または削除された場合、自動化によってチェックボックスのようなものを商談にマークできます。次に、検証でその Opportunity フィールドを参照させることができます。

ロールアップ条件で商談商品名を参照できないようです。そのため、フローの方が適切なアプローチです。

非推奨項目?

Just a head's up. Salesforce recommends that you do NOT use the IsClosed or IsWon checkbox fields in Validation Rules

Tips for Writing Validation Rules
https://help.salesforce.com/s/articleView?id=platform.fields_validation_rules_tips.htm&type=5

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?