'contains' is not a member of 'System.Array'

Hello guys,
Im facing a problem when publising my workflow as an activity in a library.
In the workflow im using the following condition in an if statement: ARRAY.contains(“String”)

But when I want to use the created activity from my library it gives the following error: contains’ is not a member of ‘System.Array’

Anyone knows how to solve this?

@Peter_Peter Can you share the xaml File?

Library activity 1.xaml (11.8 KB)

Sure! I simplified the workflow a bit so maybe it doesnt make much sense. But this is basically it.
The workflow works, but once exported to a library it gives an error

Have you checked whether Array has value or not? If required, add null check.

You can add “System.Linq” namespace to Imports (Imported namespaces)

1 Like

@Peter_Peter Can you Check this :
Library activity 1.xaml (12.0 KB)