• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 567
  • Last Modified:

get the email ID from AD

Hi EE,
Already Robbie_Leggett: has answered my question . (http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Infopath/Q_24322675.html)
Later I went into an issue, If preferred name is having space between Lastname and first name(eq: Robbie Leggett) then its throwing error, saying some rules are not applied.
"The query cannot be run fot the following dataobject: GetUSerProfileByName
Infopath cannot einthe specified query.
The SOAP response indicates that an error occurred:
A user with the account name Robbie Leggett could not be found. --> User Not Found: Could not load profile data from the Database. "

It works for names without space.
what is the workarround for this.
1 Solution
Since you have hardcoded your drop down list, I think this will work.

For each of your drop down item entries, set the Display to the Name of the person and set the Value to the email id. Then, set your preferred name field equal to the drop down field. The drop down field will display the name and the preferred name field will display the true value, the email id.

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now