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

More than 1 year has passed since last update.

Salesforceで数式項目を作成しよう~項目がどれくらい入力されているか確認する数式項目の作成

Last updated at Posted at 2022-07-05

Salesforceの運用でよくあるのが
・どのレコードでどれくらい項目が入力されているか確認したい

ということではないでしょうか

今回は数式項目(チェックボックス型)を作成し

・特定のテキスト項目4項目のうち、3項目に記載があればチェックをつける

という数式項目を作成しましょう

前提:
API参照名 test1__cというテキスト項目
API参照名 test2__cというテキスト項目
API参照名 test3__cというテキスト項目
API参照名 test4__cというテキスト項目

上記4つのカスタム項目があります

数式項目(チェックボックス)の数式は下記となります

データ型 数式
IF(NOT(ISBLANK(test1__c)),1,0) +
IF(NOT(ISBLANK(test2__c)),1,0) +
IF(NOT(ISBLANK(test3__c)),1,0) +
IF(NOT(ISBLANK(test4__c)),1,0)>= 3

 数式項目1.png

上記数式を作成すると下記画像のように項目が空欄か否かによりチェックがついたりつかなかったりします
設定2.png

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