Newer Version Available
RecordApexRepresentation Class
Namespace
RecordApexRepresentation Constructors
The RecordApexRepresentation class includes these constructors.
RecordApexRepresentation(objectType, recordData, relatedRecordData)
Signature
public RecordApexRepresentation(String objectType, List<embeddedai.ApexMap> recordData, List<embeddedai.RecordApexRepresentation> relatedRecordData)
Parameters
- objectType
- Type: String
- The object type represented by this record (for example, Account, Case, or a custom object). This value defines the context in which the record data is interpreted by embedded AI processing.
- recordData
- Type: List<embeddedai.ApexMap>
- The field-level data for the primary record as a collection of key–value pairs. Each ApexMap entry corresponds to a field name and its associated value used to construct the record context.
- relatedRecordData
- Type: List<embeddedai.RecordApexRepresentation>
- Related records associated with the primary record. Each entry represents a related object and its data, enabling hierarchical or relational record context to be passed to embedded AI logic.
RecordApexRepresentation Properties
The following are properties for RecordApexRepresentation.
objectType
Signature
public String objectType {get; set;}
Property Value
Type: String
recordData
Signature
public List<embeddedai.ApexMap> recordData {get; set;}
Property Value
Type: List<embeddedai.ApexMap>
RecordApexRepresentation Methods
The following are methods for RecordApexRepresentation.
toRecordApexRep(jsonString)
Signature
public static embeddedai.RecordApexRepresentation toRecordApexRep(String jsonString)
Parameters
- jsonString
- Type: String
- The JSON-formatted string containing record data and related record information to be converted into a RecordApexRepresentation object.
Return Value
Type: embeddedai.RecordApexRepresentation
Returns a RecordApexRepresentation instance populated with the data parsed from the provided JSON string.
toString()
Signature
public String toString()
Return Value
Type: String