AgentforceUIAPIFields

A data structure that represents field information from the UI API in Agentforce conversations. It provides comprehensive field metadata including data types, validation rules, display properties, and relationship information for rendering form fields and data displays in conversation interfaces.

PropertyTypeDescription
apiNameStringThe API name of the field
calculatedBoolWhether the field is calculated
compoundBoolWhether the field is compound
compoundComponentNameString?Name of the compound component
compoundFieldNameString?Name of the compound field
controllerNameString?Name of the field controller
controllingFields[String]?Fields that control this field
createableBool?Whether the field can be created
customBoolWhether the field is custom
dataTypeStringThe data type of the field
externalIdBool?Whether the field is an external ID
extraTypeInfoString?Additional type information
filterableBoolWhether the field is filterable
filteredLookupInfoAgentforceUIAPIFilteredLookupInfo?Filtered lookup information
highScaleNumberBoolWhether the field is a high scale number
htmlFormattedBoolWhether the field is HTML formatted
inlineHelpTextString?Inline help text for the field
labelStringDisplay label for the field
lengthIntLength of the field
maskTypeString?Mask type for the field
nameFieldBoolWhether the field is a name field
polymorphicForeignKeyBoolWhether the field is a polymorphic foreign key
precisionIntPrecision of the field
referenceBoolWhether the field is a reference
referenceTargetFieldString?Target field for references
referenceToInfos[AgentforceUIAPIReferenceToInfo]?Reference information
relationshipNameString?Name of the relationship
requiredBoolWhether the field is required
searchPrefilterableBoolWhether the field is search prefilterable
scaleIntScale of the field
sortableBoolWhether the field is sortable
uniqueBoolWhether the field is unique
updateableBoolWhether the field is updateable
MethodSignatureDescription
initinit(apiName:calculated:compound:compoundComponentName:compoundFieldName:controllerName:controllingFields:createable:custom:dataType:externalId:extraTypeInfo:filterable:filteredLookupInfo:highScaleNumber:htmlFormatted:inlineHelpText:label:length:maskType:nameField:polymorphicForeignKey:precision:reference:referenceTargetField:referenceToInfos:relationshipName:required:searchPrefilterable:scale:sortable:unique:updateable:)Initializes a new field with all properties
init(from:)init(from: Decoder) throwsInitializes from a decoder for JSON deserialization