Interface RecordWithSubQueryResults

All Superinterfaces: Record, RecordAccessor


@Immutable public interface RecordWithSubQueryResults extends Record

Represents a Salesforce record with optional sub query results.

Implementations must be immutable and therefore thread-safe.

Method Summary 

Modifier and TypeMethodDescription
Optional<RecordQueryResult>getSubQueryResult​(String objectName)Returns the result of a sub query related to this record.

Methods inherited from interface com.salesforce.functions.jvm.sdk.data.RecordAccessor 

getBigDecimalField, getBigIntegerField, getBinaryField, getBooleanField, getByteField, getDoubleField, getFieldNames, getFloatField, getIntField, getLongField, getRecordField, getShortField, getStringField, getType, hasField, isNullField

Method Detail 

getSubQueryResult 

@Nonnull Optional<RecordQueryResult> getSubQueryResult​(String objectName)

Returns the result of a sub query related to this record.

Records can have sub query results when the record is the result of a relationship query.

Parameters: objectName - The object name of the sub query. Returns: The result of a sub query related to this record.

Product Retirement Announcement

Salesforce Functions is no longer available for purchase or renewal. To preserve the capabilities that Salesforce Functions provided to your org, deploy an alternative solution before your existing order term ends. See Salesforce Functions Retirement for more information on migrating your functions. Contact your Salesforce Account Executive for more information on Heroku.