View Categories

Metadata Field Extra Information

1 min read

Field Metadata #

Pulls extended Salesforce field metadata, including descriptions, formulas, relationships, security settings, and compliance attributes, providing a comprehensive view of field design, behaviour, and governance.

Note, results will not be affected by the Field Level Security (FLS) of the user connecting to Salesforce, however some fields cannot be returned with ss_MetaFieldX, for example the compound address fields from an Address field (eg BillingStreet from BillingAddress).

Results are loaded to table ss_SysFieldX

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_MetaFieldX 'UAT', 'All'

SQL-SALES ss_SysFieldX run date: 2026-04-09 ———————-

20:30:09: v26.2.0.1 Copyright c 2026 SQL-Sales Ltd

20:30:09: Using Env|Schema: uat|dbo

20:30:09: Starting ss_SysFieldX retrieval for: All Objects

20:30:12: Connection with Username/Password/ST (BULK & REST API)

20:30:12: Drop existing ss_SysFieldX if exists and recreate

20:32:34: Load to dbo.ss_SysFieldX

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

Example of Use – Single #

exec ss_MetaFieldX 'UAT', 'Account'

SQL-SALES ss_SysFieldX run date: 2026-04-09 ———————-

20:34:21: v26.2.0.1 Copyright c 2026 SQL-Sales Ltd

20:34:21: Using Env|Schema: uat|dbo

20:34:21: Starting ss_SysFieldX retrieval for: Account

20:34:24: Connection with Username/Password/ST (BULK & REST API)

20:34:24: Drop existing ss_SysFieldX if exists and recreate

20:34:26: Load to dbo.ss_SysFieldX

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

ss_SysFieldX table #

Column NamePurpose
ObjectNameAPI name of the Salesforce object the field belongs to
ObjectLabelUser-friendly label of the object
ObjectReplicateableIf the object supports replication via API
ObjectQueryableIf the object can be queried via SOQL
FieldNameAPI name of the field
FieldLabelUser-friendly label of the field
DescriptionDescription of the field as defined in Salesforce metadata
DataTypeSalesforce data type of the field
LengthMaximum length for text-based fields
PrecisionTotal number of digits for numeric fields
ScaleNumber of decimal places for numeric fields
RequiredIf the field is mandatory (cannot be null)
UniqueIf the field enforces unique values
ExternalIdIf the field is marked as an External ID
DeprecatedIndicates if the field is deprecated or hidden
DefaultValueDefault value assigned to the field (if any)
FormulaFormula definition for calculated fields
InlineHelpTextHelp text displayed to users in the UI
ReferenceToObject(s) referenced by lookup or master-detail fields
RelationshipNameAPI name of the relationship for reference fields
RelationshipLabelUser-friendly label of the relationship
DisplayFormatDisplay format for special fields (e.g. auto-number)
MaskTypeType of masking applied (for encrypted/masked fields)
MaskCharCharacter used for masking field values
EncryptionSchemeEncryption type used for the field (if applicable)
SecurityClassificationData classification level (e.g. Public, Confidential, Restricted)
TrackFeedHistoryIf field changes are tracked in feed (Chatter)
TrackHistoryIf field history tracking is enabled
CustomIf the field is custom (1) or standard (0)

Leave a comment

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