How to move a list item into a folder within the same list
Posted on 2011-09-06
I have a business requirement to move a list item into a folder within the same list as soon as the item is added. A new folder will be created every day and todays items will be moved to this folder.
To achieve this I have created an 'Item Added' event handler which is attached to the list. What my approach to achieve this is to catch this event in 'Item Added', check if the folder is available for todays date, if not create one, move the item to this folder and may be delete this item. I don't know if moving an item will only be copied or move.
Can anyone please help? Souce code will be highly appreciated.