Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Translating fields from choice to lookup

  Asked By: Sudhir Karia         Date: Mar 24, 2010      Category: Sharepoint      Views: 339
 

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).


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:            

 

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].