UserSearchCriteria.Type - StartsWith vs QueryString gets me different results

I just ran into an interesting issue. I'm deploying my Genesys User management code for another customer on the same regional platform. For customer 1, everything works out. For customer 2, my app cannot find existing users and tries to create them (which of course fails because the user is already there). I finally drilled down to what exactly the problem is:

I'm searching users with a UserSearchCriteria that searches the 'username' field. And I've been using Type = UserSearchCriteria.TypeEnum.StartsWith

That seems to work for customer 1, but not customer 2 - for the latter if I change the Type to UserSearchCriteria.TypeEnum.QueryString then I can finally get the users (the rest of the UserSearchRequest being exactly the same).

Why does StartsWith work for one customer and not for the other?

@edit: I finally saw the difference. The Email address was Firstname.lastname@company.com for the user where it didn't work. Of course the first user we tried was incorrectly set up. The next 5 all used Firstname.Lastname@company.com and worked without problems.

I guess the documentation should be extended to mention that StartsWith is case sensitive whereas QueryString isn't (or that's a bug? Either way there's no doc for the Type parameter so it's hard to tell)

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