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?

Customize a Salesforce Object > Create Validation Rules

Last updated at Posted at 2025-09-15

Create Validation Rulesの質問

取引先と商談の2つに作る

An unexpected error occurred while inserting Account records and we couldn't check your work. Make sure Account records can be inserted in this org, and click "Check Challenge" again.

I ended up creating a new playground and going through the steps again. I found that the Customize Record Pages step was different from when I went through it the first time a few weeks ago. This time it had me using Dynamic Forms and the Lightning App Builder. I was able to successfully validate the last lesson and complete the project.

結局、新しいプレイグラウンドを作成して、もう一度手順を繰り返すことになりました。「レコード ページのカスタマイズ」ステップが、数週間前に初めて実行したときとは異なっていることがわかりました。今回は、Dynamic Forms と Lightning App Builder を使用しました。最後のレッスンを正常に検証し、プロジェクトを完了することができました。

image.png

Please check if it is set in the Opportunity object.

実際にやってみた結果

何もしないで、検証ボタンをクリックしてみた

We couldn't find an active validation rule named 'Support_Plan_Expiration_Date_Required' on the Account object.

設定を済ませると...

An unexpected error occurred while inserting Opportunity records and we couldn't check your work. Make sure Opportunity records can be inserted in this org, and click "Check Challenge" again. If this continues, contact the Trailhead Help team.

あちゃぁ、よく見るエラーだ。

そうだ、この環境は色々と仕込まれていたな。
まずは、今回作ったもの以外のValidation Rulesを非アクティブにする。

これ以外もあるかな?

image.png

変なApexがあるな。

image.png

ああああ、アンインストールできん。

image.png

  • 別のプレイグランドで同じように入力規則を作ってみましたが... 何だろうねぇ。

An unexpected error occurred while inserting Opportunity records and we couldn't check your work. Make sure Opportunity records can be inserted in this org, and click "Check Challenge" again. If this continues, contact the Trailhead Help team.

Discount Percentが必須になっている。これをオフにしてみます。ビンゴでした。

image.png

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?