AgentforceObjectRepresentation

struct AgentforceObjectRepresentation

Represents metadata and structure information for Salesforce objects within the Agentforce SDK.

This structure provides comprehensive information about Salesforce object types, including their labels, field definitions, theme information, and relationship data. It serves as the foundation for displaying object-related UI components and understanding data structure.

PropertyTypeDescription
objectTypeStringThe API name of the Salesforce object
labelStringThe singular, human-readable label for the object
labelPluralStringThe plural, human-readable label for the object
fields[String: Field]?A dictionary of field definitions keyed by field API name
nameFields[String]?An array of field API names that comprise the object's display name
themeAgentforceThemeRepresentationVisual theme information for the object
MethodSignatureDescription
initinit(objectType:label:labelPlural:fields:nameFields:theme:)Creates a new object representation