<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/71009.aspx</link><pubDate>Tue, 11 Oct 2011 07:56:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71009</guid><dc:creator>jacooper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=71009</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry I am very very new to infopath, I&amp;#39;m trying to pull out truncated accountID for the contact selector and your code works &lt;/p&gt;
&lt;p&gt;xdMath:Eval(xdMath:Eval(../my:Requestor/my:Person, &amp;#39;concat(my:AccountId, &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but the domain names are still there, I have tried to follow Alex&amp;#39;s walkthrough with no joy! it doesn&amp;#39;t like something.&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/43944.aspx</link><pubDate>Wed, 08 Jul 2009 13:34:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43944</guid><dc:creator>Alec Pojidaev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43944</wfw:commentRss><description>&lt;p&gt;First of all HLinkToEmail doesn&amp;#39;t belong to the gpContactSelector group. I believe it also &lt;span style="FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;noticeable &lt;/span&gt;on pics in my blog.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Also I don&amp;#39;t think we are adding any additional value to that forum by discussing&amp;nbsp;this very specific problem. If you need any help please post your questions in my blog.&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/43939.aspx</link><pubDate>Wed, 08 Jul 2009 12:31:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43939</guid><dc:creator>infopathic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43939.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43939</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;am still having the problem with my HLink ToEmail variable, which is only storing the AccountID of the first person selected.&amp;nbsp;&amp;nbsp;I attached my .xsn 1 or 2 posts back if someone would like to take a look at it.&amp;nbsp; Your time is much appreciated.&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/43805.aspx</link><pubDate>Mon, 06 Jul 2009 14:17:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43805</guid><dc:creator>infopathic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43805.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43805</wfw:commentRss><description>&lt;p&gt;That is quite alright warrtalon, I was surprised I was getting any help at all.&amp;nbsp; Thanks again.&amp;nbsp; Oh and I won&amp;#39;t be able to access Alec&amp;#39;s blog from work as the site is blocked unfortunately&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/43804.aspx</link><pubDate>Mon, 06 Jul 2009 14:13:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43804</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43804.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43804</wfw:commentRss><description>&lt;p&gt;Heh, well, I&amp;#39;m headed to work, and this is on my free time, so bear with me.&amp;nbsp; If you can get Alec Pojidaev to help right away, then it might be worth a try.&amp;nbsp; You can see a link to his blog on my blog (right-hand side).&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/43803.aspx</link><pubDate>Mon, 06 Jul 2009 14:10:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43803</guid><dc:creator>infopathic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43803.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43803</wfw:commentRss><description>&lt;p&gt;Thank you so much warrtalon.&amp;nbsp; I attached my .xsn to this post.&amp;nbsp; I am getting close to being done with this form, so your timeliness is much apprecaited.&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/43801.aspx</link><pubDate>Mon, 06 Jul 2009 13:43:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43801</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43801</wfw:commentRss><description>&lt;p&gt;Well, it definitely works if you get it right.&amp;nbsp; I would have to troubleshoot your XSN directly to figure out what is still wrong.&amp;nbsp; It&amp;#39;s easy to get the statement to compile without it actually being 100% right, since we&amp;#39;re using so many contatenated items.&amp;nbsp; I will review your statement later, but I probably need to see the XSN to verify that each piece of the statement is exact and doesn&amp;#39;t just look right.&amp;nbsp; Attach the XSN if you can...&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/43799.aspx</link><pubDate>Mon, 06 Jul 2009 12:56:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43799</guid><dc:creator>infopathic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43799.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43799</wfw:commentRss><description>&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Incorporate Contact Selector into your form&lt;/div&gt;
&lt;li&gt;
&lt;div&gt;Create a single text data element to store&amp;nbsp;your list of email addresses (same as the HLinkToEmail field in Alec&amp;#39;s solution)&lt;/div&gt;
&lt;li&gt;
&lt;div&gt;Simply set that field to default to this Xpath expression: xdMath:Eval(xdMath:Eval(../my:Requestor/my:Person, &amp;#39;concat(my:AccountId, &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&amp;nbsp; In my case, Requestor is my name for replyToControl.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;I have got the forumula to compile without errors.&amp;nbsp; Now, what is happening is that HLinkToEmail stores a ; by default and then when a contact is selected, it concatenates the AccountID with the ; (e.g. &amp;quot;AccountID;&amp;quot;).&amp;nbsp; If I&amp;nbsp;have 2 contacts selected, it displays the first contact&amp;#39;s AccountID twice delimited by commas.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Are these the correct return values?&amp;nbsp; If so, how can I get e-mail addresses using it?&amp;nbsp; Here is a screen of my data source:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.freeimagehosting.net/uploads/fdc233e2fe.jpg"&gt;http://www.freeimagehosting.net/uploads/fdc233e2fe.jpg&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help warrtalon.&amp;nbsp; The only things I followed in this example were your 3 steps.&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/43762.aspx</link><pubDate>Thu, 02 Jul 2009 21:07:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43762</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43762.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43762</wfw:commentRss><description>&lt;p&gt;Copy and paste your exact Xpath expression.&amp;nbsp; You have to be very careful when copying and pasting things like apostrophes, commas, and quotes, because they get messed up in translation sometimes.&amp;nbsp; The &amp;quot;my&amp;quot; namespace error may be due to you having a different schema, but I&amp;#39;d need to either see the XSN itself, a screenshot of your myschema.xsd + the Xpath statement, or at least a screenshot of your main data source pane in InfoPath plus the Xpath statement.&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/43759.aspx</link><pubDate>Thu, 02 Jul 2009 20:03:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43759</guid><dc:creator>infopathic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43759.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43759</wfw:commentRss><description>&lt;p&gt;I have tried doing your 3 steps warrtalon:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1. Add contact selector&lt;/p&gt;
&lt;p&gt;- It is working properly.&lt;/p&gt;
&lt;p&gt;2. Create a single text data element to store your list of email addresses&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Should this be a Field (element) or a field (attribute)?&lt;/p&gt;
&lt;p&gt;3. Set that field to default to the Xpath expression.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- I copied the XPath expression and changed &amp;quot;Requestor&amp;quot; to &amp;quot;gpContactSelector&amp;quot; (the name of my&amp;nbsp;folder).&amp;nbsp; When I hit &amp;quot;verify formula&amp;quot;, I get this error:&lt;/p&gt;
&lt;p&gt;msxml5.dll&lt;br /&gt;Reference to undeclared namespace prefix: &amp;#39;my&amp;#39;.&lt;br /&gt;Error occurred during a call to property or method &amp;#39;Eval&amp;#39;.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have tried a few other combinations.&amp;nbsp; I get errors saying that the&amp;nbsp;apostrophe around &amp;#39;concat(...)&amp;#39; was unexpected or the &amp;quot;;&amp;quot; expression argument is unexpected.&amp;nbsp; When I change the &amp;quot;;&amp;quot; argument to say a letter, the forumla went through.&lt;/p&gt;
&lt;p&gt;Is there anything that you see that I may have done incorrectly?&amp;nbsp; I&amp;#39;d appreciate the help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/35969.aspx</link><pubDate>Wed, 17 Dec 2008 21:28:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35969</guid><dc:creator>Alec Pojidaev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35969</wfw:commentRss><description>&lt;p&gt;I believe everything is fixed now. Web-based forms are OK. Check my&amp;nbsp;updated blog.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://alecpojidaev.wordpress.com/2008/12/16/infopath-codeless-programming-walkthrough/"&gt;http://alecpojidaev.wordpress.com/2008/12/16/infopath-codeless-programming-walkthrough/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I still prefer to send email via InfoPath (submit to email) to eliminate workflow part.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for&amp;nbsp;&lt;/p&gt;
&lt;p&gt;xdMath:Eval(xdMath:Eval(../my:Requestor/my:Person, &amp;#39;concat(my:AccountId, &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That thing really does the trick.&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/35953.aspx</link><pubDate>Wed, 17 Dec 2008 20:43:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35953</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35953</wfw:commentRss><description>&lt;p&gt;Alec,&lt;/p&gt;
&lt;p&gt;Sebastian was able to find this article &lt;a href="http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx"&gt;http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx&lt;/a&gt;&amp;nbsp;that accomplishes the same goal with much, MUCH less work and complication.&amp;nbsp; Using the eval function seems to be a better way to go, because the eval function is built to do everything you did with your custom steps.&amp;nbsp; What you came up with was brilliant, but it appears the eval function already does all that stuff for us when nested within itself.&amp;nbsp; Here are the basic steps using this eval function:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Incorporate Contact Selector into your form&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Create a single text data element to store&amp;nbsp;your list of email addresses (same as the HLinkToEmail field in Alec&amp;#39;s solution)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Simply set that field to default to this Xpath expression: xdMath:Eval(xdMath:Eval(../my:Requestor/my:Person, &amp;#39;concat(my:AccountId, &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&amp;nbsp; In my case, Requestor is my name for replyToControl.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;This is all you need to do!&amp;nbsp; You can then promote the HLinkToEmail property and use it in SPD workflows or whatever else.&amp;nbsp; It takes the string of concatenated, semicolon-separate AccountIds, converts them to the relevant emails, and sends the email perfectly.&amp;nbsp; This does not require you to setup the UserProfileService (although I still always use it but for other things), and does not require you to retrieve the actual email in order to send emails to those people.&amp;nbsp; It can&amp;#39;t get much simpler, imo.&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/35949.aspx</link><pubDate>Wed, 17 Dec 2008 20:36:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35949</guid><dc:creator>WSU54</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35949.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35949</wfw:commentRss><description>&lt;p&gt;While troubleshooting Alec&amp;#39;s solution, we stumbled across another method (i.e. using EVAL instead of CONCAT), check it out:&lt;/p&gt;&lt;p&gt;&lt;a href="http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx%20"&gt;http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx &lt;/a&gt;&lt;/p&gt;&lt;p&gt;Check it out...it is another (simpler) method for those looking to enable this type of functionality via browser-based forms. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/35947.aspx</link><pubDate>Wed, 17 Dec 2008 20:12:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35947</guid><dc:creator>Alec Pojidaev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35947</wfw:commentRss><description>&lt;p&gt;For some reason I cant&amp;nbsp;test web enabled form. Anyway, could you please try that XPath:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;../my:Requestor/my:Person&lt;/em&gt;[0 + /my:myFields/my:Counter]/my:AccountId&lt;/p&gt;
&lt;p&gt;Will you get the same error?&lt;/p&gt;</description></item><item><title>Re: Using Contact Selector to Send Emails to Multiple Users</title><link>https://www.infopathdev.com:443/forums/thread/35945.aspx</link><pubDate>Wed, 17 Dec 2008 19:26:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35945</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35945.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35945</wfw:commentRss><description>&lt;p&gt;Same here - it doesn&amp;#39;t appear to work in a browser-enabled form due to that unsupported expression.&amp;nbsp; I am not sure which part of the expression is unsupported, since&amp;nbsp;it looks fairly plain, but I will be dissecting it to find out.&lt;/p&gt;
&lt;p&gt;Actually, I just double-checked, and I&amp;#39;m NOT getting my error relative to that action.&amp;nbsp; My unsupported function is the first action of the first fCounter rule that sets the AccountName parameter of the UserProfileService query.&amp;nbsp; My design checker is telling me that this expression is not supported in the browser (it works great in rich client, though):&lt;/p&gt;
&lt;p&gt;../my:replyToControl/my:Person[number(/my:myFields/my:fCounter)]/my:AccountId&lt;/p&gt;
&lt;p&gt;The full error message is this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The following expression could not be parsed because of a syntax error or because it uses an undefined namespace prefix or unsupported function:&amp;nbsp; ../my:Requestor/my:Person[number(/my:myFields/my:Counter)]/my:AccountID.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The field names of my data elements are different on purpose, but it&amp;#39;s the same syntax otherwise.&amp;nbsp; It works perfectly and puts each email address separated by a semicolon in my LinkToEmail field.&amp;nbsp; It just will not validate against the SharePoint server and even though I can publish, it will not open in the browser due to this unsupported expression.&amp;nbsp; If I remove this action, the error goes away, but of course it doesn&amp;#39;t work.&amp;nbsp; Interestingly, though, this means that the 3rd action in that list with the concatenation does NOT give me an error like WSU54...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>