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?

Validation Rules > Implement Best Practices

Last updated at Posted at 2023-09-13

Validation Rules > Implement Best Practices

We can’t find that the validation rule implements ISNEW.

正しい数式でもこのエラーになります。2つのプレイグランドで試しましたが、同じです。

isNewを指定しないと、以下のエラーになります。

image.png

AND(
OR(
ISNEW(),
ISCHANGED(Email),
ISCHANGED(Phone)
),
ISBLANK(Email),
ISBLANK(Phone)
)

We have verified this in your org and see that your org has duplicate matching rules in it. Hence it isn't able to insert a lead and the check assumes something is wrong with the validation rule. We have deactivated the duplicate rule on Lead and were able to pass the challenge with your validation rule successfully. Please find the attached screenshot that confirms the same.

織でこれを確認したところ、組織内に重複した一致ルールが存在することがわかりました。したがって、リードを挿入できず、チェックでは検証ルールに何か問題があると想定されます。 Lead の重複ルールを無効化し、検証ルールによるチャレンジに正常に合格することができました。同じことを確認する添付のスクリーンショットを見つけてください。

We were able to change a Closed case status to Working without the Bypass_Case_Validation_Rules permission

Seems like the bypassing is working even without the Bypass_Case_Validation_Rules permission as well. It should let the user update Closed Case only IF they have the custom permission assigned and not otherwise.

Bypass_Case_Validation_Rules 権限がなくてもバイパスが機能しているようです。ユーザーはカスタム権限が割り当てられている場合にのみクローズケースを更新でき、それ以外の場合は更新できません。

We were unable to change a Closed case status to Working with the Bypass_Case_Validation_Rules permission.


AND(
NOT(ISBLANK(EngineeringReqNumber__c)),
NOT(ISNUMBER(EngineeringReqNumber__c))
)
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?