sharepoint 2010 - Unable to update a list item from a workflow task in C# -


I'm not getting any exceptions, but the code below is not just working. Any ideas? {{SPListItem item = web.lists ["NewHireFormsLibrary"]. Item [WorkflowProperties ("The" Field 1 "]," [1 field 1]], "" ["field 1"] = "Gotcha !!!"; item.Update (); LogHistory ("Information", "Workflow Indexing Complete.", ;} Hold (Exception Pre) {LogHistory ("Error", ex.Message, ex.StackTrace);}})}}

It seems that you are not referring the field to the internal name, Regions must be referenced when they arrive with the indexer of SPListItem .

  Item ["Field_x0020_1"] = "Try something like Gotcha !!!" ;  

and it should work should be noted that the internal names do not have spaces and their hex characters like above are replaced by string.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -