Salesforce SOQLで全項目をSELECTする方法
環境
Salesforce
構文
SELECT fieldList [subquery][…]
項目リストに次の関数を含めることができます。
FIELDS(ALL) — オブジェクトのすべての項目を選択します。
FIELDS(CUSTOM) — オブジェクトのすべてのカスタム項目を選択します。
FIELDS(STANDARD) — オブジェクトのすべての標準項目を選択します。
操作例
1.取引先のレコードを取得する
SOQL構文
select fields(all) from Contact limit 200
select fields(all) from Contact limit 200
select fields(all) from Contact limit 200
2.カスタム項目だけを全取得する
SOQL構文
select fields(custom) from Contact limit 200
select fields(custom) from Contact limit 200
select fields(custom) from Contact limit 200
3.標準項目だけを取得する
SOQL構文
Select fields(Standard) From Contact
Select fields(Standard) From Contact
Select fields(Standard) From Contact