Link to home
Start Free TrialLog in
Avatar of shieldguy
shieldguyFlag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of Christopher White
Christopher White
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi

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.
ASKER CERTIFIED SOLUTION
Avatar of Member_6283346
Member_6283346

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shieldguy

ASKER

Thanks