ConvertLookupFieldWithPickerToLookup.ps1 for SP2010

Apr 6, 2012 at 1:29 PM

Hello,

first of all Lookup Field with Picker 2010 is fantastic work! Thank you.

One question: Before I start using it I would be sure that there is a working way to forward and backward convert the field types.

I tried with a path modified version of the ConvertLookupFieldWithPickerToLookup.ps1 (which was for 2007), but it seams, that my field can not be found. Before I analyse deeper: Does anyone use the script in a SP 2010 environment?

Regards, Christian

Apr 6, 2012 at 2:01 PM

Ok, found out that I had a typo. I can confirm, that it works. 

Exchange the line 

$env:12HivesDir = "$env:CommonProgramFiles\Microsoft Shared\web server extensions\12\";

with 

$env:12HivesDir = "$env:CommonProgramFiles\Microsoft Shared\web server extensions\14\";

in both scripts.