View Categories

Metadata Object

1 min read

Object Metadata #

Pull all the objects in your Salesforce instance, or optionally just a single specified one.

Results are loaded to table ss_SysObject

Parameters #

ParameterPurpose
@ObjectNameSalesforce Object Name (for example Account).alternatively pass “All” to retrieve all Objects.
@EnvSQL Sales Environment Name, see Setup
@Special1Future use, not currently used
@Special2Future use, not currently used

Example of Use – All #

exec ss_MetaObject 'DEMO', 'All'

SQL-SALES ss_SysObject run date: 2023-11-09 ———————-

23:04:16: Using Env|Schema: DEMO|dbo

23:04:16: Starting ss_SysObject retrieval for: All Objects

23:04:19: Connection method BULK & SOAP API

23:04:19: Drop existing ss_SysObject if exists and recreate

23:04:21: Load to dbo.ss_SysObject

—————————————————————–

Example of Use – Single #

exec ss_MetaObject 'DEMO', 'Account'

#

SQL-SALES ss_SysObject run date: 2023-11-09 ———————-

23:06:59: Using Env|Schema: DEMO|dbo

23:06:59: Starting ss_SysObject retrieval for: Account

23:07:02: Connection method BULK & SOAP API

23:07:02: Drop existing ss_SysObject if exists and recreate

23:07:04: Load to dbo.ss_SysObject

—————————————————————–

ss_SysObject table #

Column NamePurpose
ObjectNameAPI name of the Salesforce object (e.g. Account, Custom_Object__c).
ObjectLabelUser-friendly label of the object as shown in the UI.
KeyPrefixUnique 3-character prefix used in Salesforce record IDs to identify the object type (e.g. 001 = Account).
ReplicateableIf the object supports replication via APIs (e.g. Bulk API, CDC scenarios).
QueryableIf the object can be queried using SOQL.
CreateableIf new records can be created for this object via API.
UpdateableIf existing records can be updated via API.
DeletableIf records can be deleted from this object.
SearchableIf the object is searchable (e.g. via global search or SOSL).
RetrieveableIf records can be retrieved via API calls.
LayoutableIf the object supports page layouts.
TriggerableIf Apex triggers can be defined on the object.
MergeableIf records of this object can be merged (e.g. Accounts, Contacts, Leads).
CustomIf the object is custom (1) or standard (0).

Leave a comment

Your email address will not be published. Required fields are marked *