Not sure if this is possible, I do not have the option to modify code in InfoPath, but I am able to query SOAP database to get user information, which is working beautifully but for certain users it does not work. The problem that I have run into, is that some of the members of active directory have a different domain than what the people picker chooses before the query is run.
For example: John Smith
I select John Smith on people picker and set the account name of data query field to NT-DOMAIN/jsmith (from account ID tab).
An error message pops up stating that the user does not exist.
I look up the user John Smith on AD and his domain is actually DOMAIN/jsmith.
Is there a way to first query with NT_DOMAIN, check to see if there would be an error, and if so, then query with DOMAIN instead? Like an If-else query with: If query data for NT_DOMAIN/jsmith does not exist, else query data for DOMAIN_jsmith. Then proceed with the rest of the rules.
I have tried playing around with the settings but it seems there is no way to change the action of query for data. Maybe I have been looking at it with tired eyes and there is actually a simple solution. Ideally, I do not want the user to get a pop-up if the user does not exist, instead the form is smart enough to re-query with other domain and then continue filling out the form.
Looks like 80% of the users on AD are configured with the correct domain, but there are those few that have the other domain name.
Thanks!
Aaron