Dynamic output type

Hi All,

Does anyone know how to build a custom activity with a dynamic output type and could shed some light?

I’m trying to implement a custom activity that returns List of User or List of Computer (custom types), based on user-defined input property property (dropdown).
This is functionality is implemented in quite a few activities shipped with UiPath like ForEach or Switch
You have a dropdown in properties where you can indicate what type you’re actually dealing with and changing the dropdown value causes the activity to rerender with the new type

So far I:

  • found dynamic activities and native activities
  • I managed to get the dynamic activity to work and render different different activity
  • I tried to peek how are these activities implemented in the UiPath libraries but not quite successfully yet

Any advice will be highly appreciated :slight_smile: