Home > SharePoint 2010 > InfoPath 2010 People picker control

InfoPath 2010 People picker control

New with  InfoPath 2010 is a People Picker control, this acts like the People Picker in SharePoint and allows you to choose contacts from AD.

image

image

I was using this control recently and wanted to promote the chosen person value to a list when the form is submitted, to my surprise I found that the submitted value was just a text value, not a presence aware name, so had none of the rich integration that OCS or Lync offers.

image

To get around this drawback I had to write a small workflow that fired when the form was submitted.

image

The workflow read the list value into a variable and then wrote it back to another column in the same list, but was key was to make the return field data type an Email Address.

image

Now we have a presence aware Name value.

Advertisement
  1. Deb
    February 28, 2012 at 21:46

    Worked like a charm…thanks.

  2. zee
    March 20, 2012 at 19:19

    Nice post!
    zee
    http://walisystemsinc.com

  3. Debi
    April 18, 2012 at 17:49

    I have recreated your scenario but I am missing something (I can only assume since it is not working for me) – What is “inside” your “Current Item” that you are updating?

    • Neil King
      April 19, 2012 at 16:23

      Hi There,
      I was submitting a Form to a Form library, and promoting some of the fields to the library.
      For the people picker I was promoting the ‘middle’ value in the fields list, “AccountId”, The workflow ran when an item was submitted, so the current item was just what had been submitted, the only way I found to make this work as to make sure your return field type was an email address,.
      Dont forget to add a comment into your workflow so you can see whats going on.

  4. Marc
    June 26, 2012 at 20:39

    Hi Giles,

    Have you been able to get it to work with multiple people selected in the people picker field? For me, it works great with one but not for multiple selections.

    • June 26, 2012 at 21:09

      Hi Marc,

      Although you can easily use a multiple selection people picker control within InfoPath, when the values are published to a list, they come through as a string value and therefore cannot be used in the same way in list views or workflow.

      What is the scenario you are having issues with?

      Kind Regards

      Giles

      • June 27, 2012 at 16:52

        Hi Giles,

        I upgrading a leave request form where the people picker field is being used to specify the requestors designated backups. Workflows on the SharePoint list send email notifications to these users during the approval process and when the leave is approaching for a reminder. I’ll look into parsing the string to possibly recreate it with a semicolon separating the users. Maybe that will work.

  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: