Get Objects of Type
  • 03 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Get Objects of Type

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.12.0
LocationData 

The Get Objects of Type step is used to extract objects of a user-specified data type from a List of Objects. The step does so via the Source List Input which allows users to Input the List that will be filtered by the step. The other utilized Input in this step is the Objects of Type drop-down, wherein users choose the type of Object they are trying to filter. The step then takes the filtered Objects and compiles them into a new List. Note: The step offers an additional path to handle the event of the step returning no results.



Properties

Inputs

PropertyDescriptionData Type
Source ListList to be filtered by the Objects of TypeList of Object

Data

PropertyDescriptionData Type
Objects of TypeAllows a user to choose the type of Object to filter by---

Outputs

PropertyDescriptionData Type
OutputList of the filtered objectsList of 

Example Inputs and Outputs

Source ListOutput
"see","This""see", "This"
Nulldata:{}
Empty Stringdata:{}


Common Errors

Value cannot be null

If the Objects of Type field is not set, an error will occur.

To correct this, ensure that the Object of Types field is set to a data type.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Objects Of Type 1[GetObjectsOfType] in flow [Flow 2]: Value cannot be null. (Parameter 'nativeType')
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'nativeType'
 at DecisionsFramework.Utilities.Data.DecisionsTypeHelper.IsDynamicType(DecisionsType rawType, Type& nativeType
 at DecisionsFramework.Utilities.Data.DecisionsTypeHelper.GetNativeType(DecisionsType rawType
 at DecisionsFramework.Design.Flow.CoreSteps.GetObjectsOfType.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---



Was this article helpful?

What's Next