RecordApexRepresentation Class

Contains properties and a method to create a serializable representation of a record and its associated data for AI service integration and data processing.

Namespace

embeddedai

RecordApexRepresentation Properties

The following are properties for RecordApexRepresentation.

objectType

Stores the type of the object.

Signature

public String objectType {get; set;}

embeddedai.RecordApexRepresentation, objectType

Property Value

Type: String

recordData

Stores a list of objects, where each object holds a key-value pair.

Signature

public List<embeddedai.ApexMap> recordData {get; set;}

embeddedai.RecordApexRepresentation, recordData

Property Value

Type: List<embeddedai.ApexMap>

relatedRecordData

Stores a list that contains a child or related records associated with the record data.

Signature

public List<embeddedai.RecordApexRepresentation> relatedRecordData {get; set;}

embeddedai.RecordApexRepresentation, relatedRecordData

RecordApexRepresentation Methods

Create detailed, hierarchical record objects and convert them to a custom JSON string for structured AI input.

The following are methods for RecordApexRepresentation.

toString()

Returns a structured JSON string representation of the RecordApexRepresentation object and its nested related records.

Signature

public String toString()

embeddedai.RecordApexRepresentation, toString, [], String

Return Value

Type: String