Data type ambiguity

Im having this pipeline , which retrieves data from employee groups data from LDAP and determines whether a employee belongs to a particular group or not … now the data coming from LDAP is in this format

Now i need to search a particular Employee dn in both member array and qclistadmin array, but in some data elements this qclistadmin contains only one record, making snaplogic to return its data type as string and not array like this

Hence my mapper throws error in transformations… my conditional query is this :

but this doesn’t work when snaplogic gives me string

@adityaReja, I think the sl.ensureArray() function will help your case.