Skip to content

FLOW_GetPicklistValues.DTO_Response

Class

apex
global inherited sharing class FLOW_GetPicklistValues.DTO_Response

Provides the outcome of the picklist values retrieval.

Since: 1.0


Fields

FieldDescription
global Boolean callSuccessfulIndicates if the retrieval was successful.
global String errorTextIf the request was unsuccessful this will contain the error message.
global List pickListsIf the request was successful this will contain a list of picklists and their values for a given object and record type.

Field Details

callSuccessful

apex
@InvocableVariable(required=true description='Indicates whether an error was encountered when performing a request' label='Call Successful') global Boolean callSuccessful

Type: Boolean

Indicates if the retrieval was successful.

Since: 1.0

Example:

apex
Boolean value = instance.callSuccessful;

errorText

apex
@InvocableVariable(required=false description='Will contains the error message(s) if any are encountered' label='Error Text') global String errorText

Type: String

If the request was unsuccessful this will contain the error message.

Since: 1.0

Example:

apex
String value = instance.errorText;

pickLists

apex
@InvocableVariable(required=false description=' will contain a list of picklist and their values for a given object and record type' label='PickList') global List<DTO_PickList> pickLists

Type: List

If the request was successful this will contain a list of picklists and their values for a given object and record type.

Since: 1.0

Example:

apex
List<DTO_PickList> value = instance.pickLists;