I have the necessity to switch from using a default field to using a custom one in a number of list. I have also to "copy" the value contained in the old to-be-deleted column to the new created one. To achieve my goal I have tried a programmatic approach: add my custom field to the list and then copy the value from another, already created field. I had wrote this code:

So, basically you have to copy the value from the old field to the newly created one. The new field is an "User" field like in the above sample? Also, that is the actual code you are using?
–
SPArchaeologistJul 16 '13 at 8:09

1 Answer
1

Yeah, unless the field type isn't actually called "ExtendedPioplePicker" that wouldn't work... the problem is that he probably is trying to create an instance of his custom field, not a new Text/Note one.
–
SPArchaeologistJul 16 '13 at 8:17

Pushpendra, that would be an idea... but from the original question and the name of the field type he is trying to use I would assume we are talking about a custom field type. That means that you won't find it in the enum.
–
SPArchaeologistJul 16 '13 at 9:00

Sorry I diverted you, but the rest part of the code works fine. You got the problem with fld.InternalName which works fine for me.
–
PushpendraJul 16 '13 at 9:17