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
Product_x003a__x0020_Price:Product_x003a__x0020_Producer
semicolumn seperated. In 2010 the string lookes like:
27%2030%20Product%5Fx003a%5F%5Fx0020%5FPrice%20Product%5Fx003a%5F%5Fx0020%5FProducer%206
Not-so-semicolumn-seperated....

Here you''ll find everything discussed and a nice helper class to overcom these problems...
http://dotnetfollower.com/wordpress/2012/04/sharepoint-working-with-bdc-...

Sander