0

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 ).

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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