- Issue created by @camoa
- πΊπΈUnited States camoa
Get Salesforce Object Metadata action implemented and committed.
What it does: Retrieve comprehensive metadata about any Salesforce object type including field definitions, properties, relationships, and capabilities. Built with performance optimization to handle large objects efficiently.
Key features:
- Complete object metadata retrieval using Salesforce objectDescribe API
- Performance-optimized field filtering system with smart defaults
- Configurable inclusion/exclusion of field types (address, geocode, system fields)
- Optional picklist value retrieval with memory usage warnings
- Field categorization (required, updateable, createable, relationships)
- Record type information and object capabilities
Available tokens:
- Object info:
[token:object_type]
,[token:label]
,[token:key_prefix]
- Capabilities:
[token:is_createable]
,[token:is_updateable]
,[token:is_deletable]
- Field data:
[token:field_count]
,[token:field_names]
,[token:required_fields]
- Field details:
[token:fields:Email:type]
,[token:fields:Email:label]
,[token:fields:Email:required]
- Picklists:
[token:picklist_fields:Status]
,[token:picklist_fields:Status:New:label]
- Relationships:
[token:relationship_fields:AccountId:references]
Performance options:
- Include picklist values: Default OFF - prevents massive country/state data bloat
- Include address fields: Default OFF - excludes Street, City, State, Country fields
- Include geocode fields: Default OFF - excludes Latitude, Longitude fields
- Include system fields: Default OFF - excludes CreatedDate, ModifiedDate audit fields
- Include relationship fields: Default ON - includes AccountId, OwnerId lookup fields
Testing: Successfully tested with Contact object. Reduced from 65 fields to 31 fields (52% reduction) with default filtering. Eliminated 100K+ character data bloat. All token access confirmed working.
Files added/changed:
src/Plugin/Action/SalesforceObjectMetadata.php
(new action)config/schema/salesforce_eca.schema.yml
(configuration schema)
This completes the final roadmap item for v1.0.0. All planned features are now implemented and performance optimized.
Automatically closed - issue fixed for 2 weeks with no activity.