Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

i want to make the code send email that is picked from active directory inside a text box

 XPathNavigator dataSource;
 dataSource = this.MainDataSource.CreateNavigator();
 string toAddress = dataSource.SelectSingleNode
("/my:myFields/my:toAddress/pc:Person/pc:AccountId",NamespaceManager).Value;
dataSource.SelectSingleNode("//my:field1",NamespaceManager).SetValue(this.User.UserName);

so how can i retrieve person and group email and put it inside a text box and which one of this i should use (account id or account type, display name ).

share|improve this question
add comment

1 Answer 1

I would strongly disadvice to code in Infopath which is mostly the method of invoking more troubles than solving problems

The answer is provided in the detailed step-by-step instructions with screenshots by:

Let me know if they answered your question.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.