Update list item ID
I have 2 list first one is source for lookup field in other. My problem is that first list item can be moved to another folder or change it's content type, and when tihs happens ID also changes because I'm creating new item and deleting old one, so lookup
information is broken.
1. it possible to update new list item ID or create new item with defined ID. (original item is deleted in process).
2. how can item change folder widought creating new item in this folder and deleting old one
3. how can item change content type widought creating new item in this folder and deleting old one
Thanks
June 23rd, 2010 7:08am
Hi,
1.
it possible to update new list item ID or create new item with defined ID. (original item is deleted in process).
There is no OOTB way to do it but you can realize it according to coding, of course the requisites is the ID have to be unique.
2.
how can item change folder without creating new item in this folder and deleting old one
There is no good solution for this need for this field is system field. Maybe you can turn to coding or third party softwares like SharePoint manager 2007.
3.
how can item change content type without creating new item in this folder and deleting old one
I have tested this case, but the ID has not changed after changing the content type.
Hope it is helpful!Seven
Free Windows Admin Tool Kit Click here and download it now
June 28th, 2010 9:33am
Thanks for help.
Can you give me example how to set ID in code for new item.
Thanks
June 30th, 2010 11:46pm
Hi,
It is like normal instance and set its property.
For spitem and id property, please refer to:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitem_members.aspx
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitem.id.aspx
Hope it is helpful!
Seven
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2010 10:43am


