Skip to Content

SPBusinessDataField.GetProperty("SecondaryFieldWssNames") is totally changed

During a 2007-2010 migration, I found that our custom BDC refresher was not working at all.. first of all the infrastructure name space has changed from
Microsoft.Office.Server.ApplicationRegistry.Infrastructure to Microsoft.BusinessData. The encodinging methods have slightly changed, you will need to update the code to use the Default finderviews (or pass in the correct views). The biggest issue for me had to do with SecondaryFieldWssNames. In 2007 when you call SPBusinessDataField.GetProperty("SecondaryFieldWssNames"), the returned string is somthing like
semicolumn seperated. In 2010 the string lookes like:

Here you''ll find everything discussed and a nice helper class to overcom these problems...