LoginSignup
0
0

More than 1 year has passed since last update.

SOQLでカスタムオブジェクトのキープレフィックスと名前空間プレフィックス

Posted at

AppExchange配下のカスタムオブジェクトも含めて一覧を作りたいって話があり、
調べた方法をメモとして残しておく。
もっと簡単な方法があるのかもしれないけど・・・。

SELECT MasterLabel, 
       KeyPrefix, 
       DeveloperName, 
       QualifiedApiName, 
       NamespacePrefix 
  FROM EntityDefinition 
 WHERE IsCustomSetting = false 
   and QualifiedApiName like '%__c' 
 Order by MasterLabel

EntityDefinitionの詳細は↓
https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_entitydefinition.htm

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