Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Translating fields from choice to lookup

  Asked By: Sudhir    Date: Mar 24    Category: Sharepoint    Views: 1756

I am trying to copy files from one document library to another, and
while at it, convert choice fields on the source to lookup fields on
the destination. The lookup table already exists, and I think I have
the right code to convert to lookup values, but I can't get them to go
properly in the destination. I either get an invalid lookup field
error, or no values show up in the destination.

I basically find the display name of the choice in the lookup table,
get its id, and try to put that in the destination lookup field (using
a SPLookupFieldValue object).

Has anyone has to do this? (I may have to resort to copying them
first as a choice, then convert them within the same document library).



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Translating fields from choice to lookup Or get search suggestion and latest updates.