Is there a way to programmatically move an existing list item (SPListItem) to a folder or do I need to make a new item that is a duplicate of the list item in the folder in question and then delete the old one?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
||||
|
|
|
If its a file you can use the SPFile.MoveTo command. |
|||
|
|
|
It is not explicitly a file but you can still use it as one. Here's an example I've used before:
You could make a new item that is a duplicate but you'll run into issues if you have lookups to that item. Since the new item will have a new ID, the lookup will be broken. |
|||
|
|