<?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>Workflow</title><link>https://www.infopathdev.com:443/forums/50.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Accessing an infopath db field value in workflow</title><link>https://www.infopathdev.com:443/forums/thread/52868.aspx</link><pubDate>Wed, 17 Mar 2010 23:44:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52868</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52868.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=52868</wfw:commentRss><description>&lt;p&gt;Should be pretty simple.&amp;nbsp; You can do one of two things:&lt;/p&gt;
&lt;p&gt;1) In the dropdown controls for those names, you can set the Value to the person&amp;#39;s email address while leaving the Display Name as their Full name.&amp;nbsp; This way, the user selects a friendly name, but the underlying value saved in the XML is that user&amp;#39;s email, which you then promote to SharePoint, and it shows up as email address in the form library.&amp;nbsp; Once the value is in SharePoint, SPD can pick it up and do actions with it, such as using it in the To or CC fields of an email.&lt;/p&gt;
&lt;p&gt;2) If you actually need that Display Name somewhere other than in the InfoPath form itself, then leave both Value and Display Name as the full name of the users, but then create new, hidden fields for storing the email address of the selected user.&amp;nbsp; What you do is create a rule on the dropdown controls that set&amp;#39;s the hidden field&amp;#39;s value to the Email Address node of the SQL data connection and filter it where the full name equals the value in the dropdown field.&amp;nbsp; You&amp;#39;re basically saying, &amp;quot;Parse through all users in this data connection, find the one where the name matches, and give me the email address value for that user.&amp;quot;&amp;nbsp; You can do this for however many dropdowns you have&amp;nbsp;as long as you have a separate hidden field for each email address.&amp;nbsp; Then, promote those email address fields during the re-publish of the form template, and pick up those values in your SPD workflow.&lt;/p&gt;
&lt;p&gt;SPD doesn&amp;#39;t need to reda your SQL DB - just expose the SQL data in the form and promote it to SP.&lt;/p&gt;</description></item><item><title>Accessing an infopath db field value in workflow</title><link>https://www.infopathdev.com:443/forums/thread/52826.aspx</link><pubDate>Wed, 17 Mar 2010 13:31:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52826</guid><dc:creator>evvo1961</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=52826</wfw:commentRss><description>&lt;p&gt;im wanting to implement a fairly simple workflow whereby once a form is submitted an email is sent to 2 recepients that have been selected from dropdown controls. (for them to approve request)&lt;/p&gt;
&lt;p&gt;however within the designer/workflow environment i cant see how i access this information... the dropdowns are fed from a database table&amp;nbsp;that includes the staff member email (though only the name is displayed in the dropdown).. and i cant see how i access any of these db fields within the workflow options... &lt;/p&gt;
&lt;p&gt;i want to find the email address corresponding to the selected staff names in the dropdowns and sent each an email...&lt;/p&gt;
&lt;p&gt;i would then want to run another workflow to another dept when both these recipients confirm approval (checkbox ticked) so would to do a similar thing though these 2 cheeckbox&amp;nbsp;fields would be directly within the form.&lt;/p&gt;
&lt;p&gt;can anyone advise how to do this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>