<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: People Picker email extraction with multiple choices</title><link>https://www.infopathdev.com:443/forums/thread/106059.aspx</link><pubDate>Wed, 06 Apr 2016 20:26:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106059</guid><dc:creator>mauleevadi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=106059</wfw:commentRss><description>&lt;p&gt;I tried all the steps in the reply above and&amp;nbsp;almost got it working accept that somehow it is adding submitter&amp;nbsp;email at the end of WorkEmail field on submit. &lt;/p&gt;&lt;p&gt;&amp;nbsp;any way to get rid of that???&lt;/p&gt;&lt;p&gt;&amp;nbsp;Please advise. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: People Picker email extraction with multiple choices</title><link>https://www.infopathdev.com:443/forums/thread/96381.aspx</link><pubDate>Mon, 10 Mar 2014 19:24:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96381</guid><dc:creator>maciasd3</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96381.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96381</wfw:commentRss><description>&lt;p&gt;Okay, for anyone else that is interested, I finally figured this out. First my schema:&lt;/p&gt;&lt;p&gt;myFields&lt;br /&gt;- CC (Group)&lt;br /&gt;-- pc:Person&lt;br /&gt;--- DisplayName&lt;br /&gt;--- AccountId&lt;br /&gt;--- AccountType&lt;br /&gt;- CCConcat&lt;br /&gt;- WorkEmail&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;To recap, I first added the GetUserProfileByName data connection using Clayton Cobb&amp;#39;s awesome instructions here:&amp;nbsp;http://claytoncobb.wordpress.com/tag/getuserprofilebyname/&lt;/p&gt;&lt;p&gt;Next, I set the default value of CCConcat to the double eval trick the People Picker field using Peter Northcott&amp;#39;s method here:&amp;nbsp;http://tinkerersjournal.blogspot.com/2013/01/codeless-double-eval.html. This pulls the AccountIds from the people picker and separates them with a semi-colon.&lt;/p&gt;&lt;p&gt;I then added the following action rules to my submit button at the bottom of the form:&amp;nbsp;&lt;/p&gt;&lt;code&gt;Set a field&amp;#39;s value: AccountName = substring-before(CCConcat, &amp;quot;;&amp;quot;)
&lt;br /&gt;
Query using a data connection: GetUserProfileByName
&lt;br /&gt;
Set a field&amp;#39;s value: WorkEmail = concat(WorkEmail, concat(Value[Name - &amp;quot;WorkEmail&amp;quot;], &amp;quot;;&amp;quot;))&lt;/code&gt;&lt;p&gt;Then I set an action rule on the field WorkEmail with the condition of &amp;quot;CCConcat is not blank&amp;quot; and it reads:&lt;/p&gt;&lt;code&gt;Set a field&amp;#39;s value: CCConcat = substring-after(CCConcat, &amp;quot;;&amp;quot;)
&lt;br /&gt;
Set a field&amp;#39;s value: AccountName = substring-before(CCConcat, &amp;quot;;&amp;quot;)
&lt;br /&gt;
Query using a data connection: GetUserProfileByName
&lt;br /&gt;
Set a field&amp;#39;s value: WorkEmail = concat(WorkEmail, concat(Value[Name - &amp;quot;WorkEmail&amp;quot;], &amp;quot;;&amp;quot;))&lt;/code&gt;&lt;p&gt;This causes the form to read the AccountIds in the CCConcat field and run them through GetUserProfileByName until the field is empty and place the results in the WorkEmail field.&lt;/p&gt;&lt;p&gt;Lastly, I told the send email data connection to simply populate from the WorkEmail field and boom, the emails sends properly.&lt;/p&gt;

&lt;p&gt;Hope this helps someone else :-)&lt;/p&gt;</description></item><item><title>Re: People Picker email extraction with multiple choices</title><link>https://www.infopathdev.com:443/forums/thread/96298.aspx</link><pubDate>Tue, 04 Mar 2014 18:24:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96298</guid><dc:creator>maciasd3</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96298.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96298</wfw:commentRss><description>Good morning!
&lt;br /&gt;&lt;br /&gt;
So, I have been playing around with this and made a little progress. I am now extracting the AccountId from the people picker as opposed to the DisplayName. I am then feeding that AccountId into the query of the GetUserProfileByName connection, re-querying the connection, then having it output is Value to a new field after it&amp;#39;s been filtered to show Name=&amp;quot;WorkEmail&amp;quot;.
&lt;br /&gt;&lt;br /&gt;
This solution works really well if only one name is put into the people picker. I run into a problem, however, when multiple names are selected and the double eval kicks in to concat them. It seems that GetUserProfileByName doesn&amp;#39;t understand the multiple AccoundIds.
&lt;br /&gt;&lt;br /&gt;
At this point I am really lost as to where even to begin getting over this last hump, so any help y&amp;#39;all can provide is greatly appreciated. Thanks again!</description></item><item><title>People Picker email extraction with multiple choices</title><link>https://www.infopathdev.com:443/forums/thread/96271.aspx</link><pubDate>Tue, 04 Mar 2014 00:37:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96271</guid><dc:creator>maciasd3</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96271.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=96271</wfw:commentRss><description>Hello everyone!
&lt;br /&gt; &lt;br /&gt;
I have searched high and low for an InfoPath 2010 codeless solution to my issue to no avail. I am hoping the collective genius of the InfoPathDev forums can assist :-).
&lt;br /&gt; &lt;br /&gt;
I am building an InfoPath form that will be hosted on SP2010. The purpose of the form is to create a centralized location from which my fellow team members can send a standardized email to a group email box that is owned by another department. I want to provide a field for them to designate other people in our company that will be CC&amp;#39;d on the email when they submit the form. So far, this is what I&amp;#39;ve done:
&lt;br /&gt; &lt;br /&gt;
- Created a working People Picker field/control that can successfully search my SP server for multiple users&lt;br /&gt;
- By using the double eval trick, I can extract all of the DisplayNames from the People Picker and insert them into a field: &lt;code&gt;xdMath:Eval(xdMath:Eval(my:CC/pc:Person, &amp;#39;concat(pc:DisplayName, &amp;quot;; &amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;/code&gt;
&lt;br /&gt; &lt;br /&gt;
Where I am having issues is extracting the multiple emails from the DisplayNames so I can put the code into the Data Connection of the email submit. I know that it has something to do with querying the GetUserProfileByName service, and I have added that service as a data connection, but I am missing the piece that converts them to email addresses.
&lt;br /&gt; &lt;br /&gt;
Now, you may ask why I want to go through all of this trouble to convert them so badly. Well, I have discovered that when the form is filled and submitted via an InfoPath Form Web Part, it requires a full email address in the CC field to send properly. This may simply be my server, but I would rather work around this via InfoPath than deal with the fight that would ensue by bringing this issue up with my IT team.
&lt;br /&gt; &lt;br /&gt;
Anyway, thanks a million in advance for your help and I look forward to hearing from someone!</description></item></channel></rss>