I have placed a web part on the welcome screen of a document set. When i click the button i want to be able to rename the document set.
Has anyone accomplished this?
I can get reference to the current document set via
SPListItem item = SPContext.Current.ListItem;
DocumentSet set = DocumentSet.GetDocumentSet(item.Folder);
//document set name set.Item["Name"] = "new name"; set.Item.Update();
the above couple lines seems to do something but i get an exception about not able to open folder
any ideas? ty