<?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>Workflow issue with field name "Priority"</title><link>https://www.infopathdev.com:443/forums/thread/67205.aspx</link><pubDate>Thu, 09 Jun 2011 10:16:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67205</guid><dc:creator>mrsafe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67205.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=67205</wfw:commentRss><description>&lt;p&gt;Hi There, &lt;/p&gt;This is a heads up really so not a question per say, but definatley an invitation to comment. I am currently working to move IPFS 2007 broswer based forms to SharePoint 2010 with the least steps possible. Some of the forms have workflows on the lists the forms are hosted on. One of my fields in a form is entitled Priority, When publishing most of my forms I used &amp;quot;None create a new field in this Form Library&amp;quot; on the property promotion page in the publishing wizard in IP2007. In order to identify the correct field in the workflow activity event I use:&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt; string&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt; guid3 = workflowProperties.Item.Fields[&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2" face="Consolas"&gt;&lt;font color="#a31515" size="2" face="Consolas"&gt;&lt;font color="#a31515" size="2" face="Consolas"&gt;&amp;quot;Priority&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;].Id.ToString();&lt;br /&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;&lt;font color="#0000ff" size="2" face="Consolas"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt; pri = workflowProperties.Item.Properties[guid3].ToString();&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;When stepping through the code I noticed the GUID was being returned for the item field ID, but then null refferenced on the next line. I started looking at the content type and when drilling down I noticed that the Priority field belonged to SharePoint and was called &amp;quot;RoutingPriority&amp;quot;. Unfortunately changing the workflow call to &amp;quot;RoutingPriority&amp;quot; caused the exception that the Field Did not exist on the first line. So if I am correct and please I would love to know exactly whats happening here; the GUID returned from the first line above is in fact for the &amp;quot;RoutingPriority&amp;quot; field which is not obtainable as it is not a GUID that is present in the workflowProperties.Item.Properties collection causing the NULL reference.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Consolas"&gt;So workaround is to obviously change the field property promotion name in the publishing wizard to one that doesn&amp;#39;t seem to be reserved for SharePoint 2010, kind of sucks a bit for reporting and end users though. One to watch&amp;nbsp;out for anyway guys.&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Consolas"&gt;Appendum: Date comes out as &amp;quot;V4HolidayDate&amp;quot; another one to be aware of.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>