BlueprintFieldOptionsResult - gomeddo/js-sdk GitHub Wiki

Object containing the results of a BlueprintFieldOptionsRequest including methods to get the individual option records.

Example

const fieldOptionsRequest = gm.buildBlueprintFieldOptionsRequest('ReservationBlueprint', 'B25__Staff__c')
    .setFieldOnPrototype('B25__Resource__c', '<resourceId>')
    .includeAdditionalFields(new Set(['B25__Description__c', 'B25__Image_Url__c']))
    .getResults()

numberOfOptions

Syntax

numberOfOptions()

Return value: The number of options in the result.

Description

Gets the number of options in the result.


getObjectIds

Syntax

getObjectIds()

Return value: A list of all the record ids in the result.

Description

Gets a list of all the record ids in the result.


getRecord

Syntax

getRecord(id)

Parameters:

  • id The id of the option record you want to receive

Return value: The SObject matching the id.

⚠️ **GitHub.com Fallback** ⚠️