Lookup with wildcards

Hello everybody,

I Want use ‘Lookup Datatable’ activite but in LookUp Value i want use wildcards for dosn’t search only the exact string.

It’s possible ?

Thank !

Hey @mateo.drouillard

You want to search datatable by part of a string but not the entire value is that correct?

Thanks
#nK

Only part of string

Thank @Nithinkrishna

Hey @mateo.drouillard

Try the below please,

dtData.AsEnumerable.Any(Function(row) row("columnName").ToString.Contains("part of your string"))

The above will give you either true or false.

Hope that helps.

Thanks
#nK

1 Like

Hey @mateo.drouillard

If you want to filter itself then,

dtData.AsEnumerable.Where(Function(row) row("columnName").ToString.Contains("part of your string")).First()

The above gives you a matched data row.

Hope that helps.

Thanks
#nK

Thank for your reply, but where i put this ?

At the place of Lookup in an Assign statement.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.