Extract emails from people picker in InfoPath 2010

In this InfoPath demo video you will see how you can get email addresses from an InfoPath 2010 people picker control for a selected group of users.

In recipe 67 you will learn how to retrieve the email addresses of the users you have selected from a person/group picker control.

Get more solutions from InfoPath 2010 Cookbook 2 which is available on CreateSpace (An Amazon company)
Watch next video: Display Access 2010 data in an InfoPath 2010 browser form

InfoPath demo video transcript:

The person/group picker control in InfoPath allows you to select users or groups from a particular SharePoint site. And while you can enter email addresses into the control to find users, the control itself does not store email address information, but rather account information.

So if you want to use the person/group picker control to return email addresses, there are a couple of techniques you can use, and in this recipe you will learn one of the easiest ways to do this.

Here I'm in SharePoint 2010 on a user's page. His name is Clovis Carvalho and this is his email address. Clovis is the manager of Jane Doe and John Doe. If I go to Jane Doe's page, you can see her email address listed here. And this is the email address of John Doe. We'll use the person/group picker control to find these 3 users and return their email addresses.

I've already published the InfoPath form template to SharePoint, so I'll click Add document. When the InfoPath form opens, I'll type the user names of those 3 users into the person/group picker control. And then when I click Check names, you'll see their corresponding email addresses appear in the text box control.

Related InfoPath Demo Videos:

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.

InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010