shieldguy
asked on
How to move a list item into a folder within the same list
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.
Thanks
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.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Hi could I suggest something else. As what you are asking I think you would need to hire a contractor to achieve.
You could create the default view for the list to only show items with today's date. All the other items will be hidden from view.
Create to mandatory fields in a custom list. "Date" (Auto Populated with the current days date when created).
You can create views to only show items from certain date ranges.