Archiving List Items

I have a filtered list setup. New entries to the list will have a sequence number followed by the year. For example: 001-15. For the filtered view, this works fine. When I click the list name and view all list items (unfiltered view), what I have in the
list is the following:
001-14
001-15
002-14
002-15
Is there a way to archive the 2014 items so they don't show up in the list?

You could modify the All Items view with a Filter where your Column contains -15
Not ideal as you would have to modify it each year. So when 2016 came around you would need to change the filter to -16.
I did try to setup a dynamic filter (but didn't work for me) where the Column contains ="-"&TEXT(NOW(),"yy")
Maybe someone else could provide you with a more dynamic way so you didn't have to modify each year.

Similar Messages

  • List items archival with version history using powershell

    HI
    Is there any way to work with site and content structure in SharePoint 2010 with power-shell.
    I want to run a automated task(power shell script) to move list items from source to destination in the same site with version history.
    I know i can do it from site and content organizer but i have to do manually and SharePoint designer workflows doesn't retain the version history.
    Please give me  your valuable tips.

    Hi Manikanta,
    Archive ListItem with Version History in SharePoint, I suggesting you the best links for your solution here
    http://techno-sharepoint.blogspot.sg/2012/10/moving-sharepoint-list-items-to-archive.html
    http://get-spscripts.com/2011/10/copy-sharepoint-lists-and-document.html
    For more details, reach us at
    <a href="http://staygreenacademy.com/sharepoint-2013-training/">SharePoint 2013 Online Training</a>

  • Copy List Item Attachment for archiving using SharePoint Designer 2013

    hi,
    how to Copy List Item Attachment for archiving using SharePoint Designer 2013

    1. You can use access:
    http://viziblr.com/news/2011/11/5/batch-exporting-sharepoint-2010-list-item-attachments-using.html
    Or you can try below script
    You can loop through each list item, and get each attachment.
    List<SPAttachment> attachments = new List<SPAttachment>();
    SPList list = SPContext.Current.Web.Lists["My List"];
    foreach (SPListItem item in list.Items)
    attachments.AddRange(item.Attachments.Cast<SPAttachment>());
    If this helped you resolve your issue, please mark it Answered

  • SharePoint 2010 Rest API: How to add attachment to a list item via ListData.svc

    Hi
    I have set up a project using the REST API in c# Visual Studio 2010.
    I have added a service reference to the URL //site/_vti_bin/listdata.svc/
    I can query the list and get back data, but I can't retrieve the attachments.
    I can write data to the list, but I can't add attachments.
    Are there any examples of how to add or retrieve attachments using the REST API services.
    Thanks
    Mike

    Hi,                                                             
    If you want to work with list attachments using REST API, here are some links will show how to do this using Javascript:
    http://msdn.microsoft.com/en-us/library/office/dn292553.aspx#FileAttachments
    http://chuvash.eu/2013/02/20/rest-api-add-a-plain-text-file-as-an-attachment-to-a-list-item/
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/06/27/how-to-get-list-item-attachments-using-rest-and-javascript-in-sharepoint-2013.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • Automatically create Sub site With the Name of List Item from the list of parent site ,

     Hi all
    I am using Share Point 2010 And
    I have one task That is create new sub site automatically with the name of list item which I Am added in main site List 
    for Example: I have a list name "Projects"  in my main site I am going to add new project as a item ,with that project name i want a new sub site will create automatically .Is there any work flow or any setup
    or any feature please help me by giving guidance  
    Thanking You,
    Arun Darly.

    you can use ECMA script.
    For adding a list item.
    http://adicodes.com/add-update-and-delete-list-items-using-ecmascript/
    Once the item has been added, on success function create a sub site
    http://withinsharepoint.com/archives/285
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Rating a List Item using jquery with out using User profile service

    Hi,
    I dont have access to Central admin and i was not not able to enable USer profile service.
    can i rate a list item in Sharepoint 2010 using any jquery plugin
    i got the link
    http://blogs.msdn.com/b/carloshm/archive/2009/08/24/jquery-rating-in-sharepoint-lists.aspx
    But i am not able to find any plugin in it.
    Please advice.
    Thnaks,
    Pallavi

    Hi,
    According to your post, my understanding is that you wanted to rate a list item using JQuery in SharePoint 2010.
    The link you had posted above is for SharePoint 2007.
    You can refer to the following articles which about using the JQuery to call the rating service.
    http://blog.dennus.net/2011/08/09/using-spservices-and-jquery-to-include-social-rating-control-on-_layouts-page/
    https://www.habaneroconsulting.com/insights/Calling-the-Rating-Service-using-jQuery-in-SharePoint-2010-Part-1-of-2#.UxbQxvmSz6k
    You can also use the tool of the CodePlex to achieve it.
    http://sptoolbasket.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Help: set the list item when scrollbar scrolls

    i need help regording how to set the listbox list item to be selected (i.e. item to be highlighted) when the vertical scrollbar scrolls.

    Hi Shreyas,
    You can insert the code below into the NewForm.aspx page of the list via a Script Editor web part:
    <script type="text/javascript">
    _spBodyOnLoadFunctionNames.push("ready");
    function ready()
    //12/04/2015 - 18/04/2015
    var sd = "";
    var ed = "";
    var d = new Date();
    //get start date of the week
    d.setDate(d.getDate() - d.getDay());
    sd = convertDate(d);
    //get end date of the week
    d.setDate(d.getDate() + (6 - d.getDay()));
    ed = convertDate(d);
    //populate the string into the Title field
    var title = document.querySelector("input[title='Title']");
    title.value = sd+" - "+ed;
    function convertDate(inputFormat) {
    function pad(s) { return (s < 10) ? '0' + s : s; }
    var d = new Date(inputFormat);
    return [pad(d.getDate()), pad(d.getMonth()+1), d.getFullYear()].join('/');
    </script>
    It will populate the “Title” field with the text like “12/04/2015 - 18/04/2015” based on current date when adding a new item in this list in the NewForm.aspx page:
    Here are two links about how to add code into page via Content Editor Web Part:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/04/14/using-the-javascript-object-model-in-a-content-editor-web-part.aspx
    http://sharepointadam.com/2010/08/31/insert-javascript-into-a-content-editor-web-part-cewp/
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Merging List Items with Word Template

    Hello,
    I'm running SharePoint 2013, SharePoint Designer 2013 and the latest versions of Word and Windows.  I'm not a programmer of any sorts.
    I want to run a workflow, triggered by the addition of a new list item.  The workflow needs to take the new list item data and merge it with a Word document I'm using as a template.  The document them needs to be stored in a library.
    There are a few posts about this but none seem to work with SP 2013 and SPD 2013.  Here is one example which appears to work using SP 2010 workflows but I can't get it to work with SP 2013.
    http://www.quercussolutions.com/blog/index.php/out-of-the-box-document-generation-in-sharepoint-2/
    I want to use SharePoint rather than a third party addin.
    I'd appreciate any assistance.

    Hi,
    As I understand, you would like to create word document based on SharePoint list columns, then save it to SharePoint library. We could use workflow to automate the process.
    Here is an article you could refer for detail steps:
    http://sharepointprojectbrad.wordpress.com/2013/06/10/create-word-2013-documents-from-sharepoint-2013-list-items/
    More information:
    http://blogs.technet.com/b/brenclarke/archive/2009/04/15/automatically-create-word-documents-which-include-list-fields.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Selected list items to Word document

    I found online many posts to generate a word document with all items included in a list.
    But is is possible to have the generation triggered by the user and to include only a subset of the list items?

    Hi  ,
    According to your description, my understanding is that you want to generate a word document with selected list items in your SharePoint 2010.
    You should look into the Word Control Toolkit, which uses the Open XML format SDK to achieve what you require.
    The basic functionality is that you use the Edit Control Block on a selected list item to generate and populate a Word document using a template you can select from a drop-down list.
    Here's some links to get you started:
    Generating Documents from SharePoint Lists with Open XML Content Controls
    http://blogs.msdn.com/b/ericwhite/archive/2009/10/14/generating-documents-from-sharepoint-lists-using-open-xml-content-controls.aspx
    Word Content Control Toolkit (Codeplex)
    http://dbe.codeplex.com/releases/view/5508
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Autocomplete text or list item

    i'd like to perform Autocomplete property to text item or list item in forms 10g , i know that solution is using java bean but i don't know how to use it with oracle and how to import it
    best regards

    At runtime, display the Java console to see if there ar error raised.
    Did you follow the article installation steps? Did you copy the JAR file in the /forms/java folder ? Did you add it to the archive tags in the /forms/server/formsweb.cfg file ?
    Francois

  • Ribbon + s4-title s4-lp | Hides when clicked on the list item

    Hello,
    Using
    SPSecurityTrimmedControl, I hide the ribbon for a user having
    view only rights. Now when this user clicks on any list item (grid view), the div "s4-title" containing the logo, and title text hides too.
    Please help.

    Thanks for the reply Shakir.
    I tried to find the div with id ms-designer-ribbon to make the changes and add the JavaScript. I failed to do so. Please helpme with me with this.
    I'll try to explain a bit more:
    The View Only user shouldn't have the ribbon for any editing changes. To achieve this, I followed the steps given in the article (URL below).
    http://blogs.msdn.com/b/zwsong/archive/2010/04/29/how-to-hide-ribbon-from-users-without-edit-page-privilege.aspx
    Now when the user clicks anywhere on "Line Item", the div containing logo i.e.
    <div class="s4-title s4-lp">
    gets hide. There should be some click event on the list items which onclick opens the edit option.
    Any help is appreciated

  • Scope to search List Items

    I need to create a search scope that would limit the results to only the list items in all the custom lists of a particular site.
    I created a search scope and added a "Web Address" rule type, set the "Folder" to the site I need searched and set the "Behavior" to Include.
    This gets me everything in the site.
    Gut feeling tells me that I need to also create a "Property Query" rule type and set it to "Require" to filter out only the list items, but I'm not sure what to put for property restrictions.
    Appreciate some help on this...

    You may try ContentClass, info care of Dan Attis
    here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3255619&SiteID=1
    and here: http://www.devcow.com/blogs/jdattis/archive/2007/12/20/the-contentclass-and-isdocument-properties-along-with-the-welcome-page-caveat.aspx

  • Using REST API: Query search box to return list items

    Hey,
    My goal is to create a search box which returns the items (matching to the name) from a list.
    Bonus: The return would happen without requiring user to click a
    Search button or such.
    To achieve this I assume the SharePoint 2013's REST API should be used. I'm completely inexperienced in using the REST API so all kind of suggestions are available.

    Hi,
    Here are some articles about SharePoint 2013 REST API for your reference:
    Get started with the SharePoint 2013 REST service
    http://msdn.microsoft.com/en-us/library/office/fp142380(v=office.15).aspx
    How to: Complete basic operations using SharePoint 2013 REST endpoints
    http://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    SharePoint 2013 – CRUD on List Items Using REST Services & jQuery
    http://www.plusconsulting.com/blog/2013/05/crud-on-list-items-using-rest-services-jquery/
    Working with SharePoint list data - OData, REST and JavaScript
    http://blogs.technet.com/b/fromthefield/archive/2013/09/05/working-with-sharepoint-list-data-odata-rest-and-javascript.aspx
    Best regards
    Dennis Guo
    TechNet Community Support

  • Add list item using anonymous user in public website of shareopint 2013 office 365

    Can any body know the solution to over come of following error while add list item using anonymous user using CSOM in shareopint 2013 office 365 public website.
    I have tried following solution to narrow down the error from "Access permission"
    http://sharepointtaproom.com/2014/08/28/anonymous-api-access-for-office-365-public-sites/#comment-2304

    Try below:
    http://www.codeproject.com/Articles/785099/Publish-a-Form-for-Anonymous-Users-on-a-Public-Sit
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/06/13/how-to-allow-anonymous-users-to-add-items-to-sharepoint-list-using-client-object-model.aspx
    // Allows AddItem operation using anonymous access
    private
    static voidAllowAnonAccess(){
    Console.WriteLine("Enabling Anonymous access....");
    SPWebApplication webApp =
    SPWebApplication.Lookup(new
    Uri(webAppUrl));
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Remove(typeof(Microsoft.SharePoint.SPList),
    "GetItems");
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Remove(typeof(Microsoft.SharePoint.SPList),
    "AddItem");
                webApp.Update();
    Console.WriteLine("Enabled Anonymous access!");  
    // Revokes Add/Get Item operation using anonymous access
    private static
    voidRemoveAnonAccess(){
    Console.WriteLine("Disabling Anonymous access....");
    SPWebApplication webApp =
    SPWebApplication.Lookup(new
    Uri(webAppUrl));
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Add(typeof(Microsoft.SharePoint.SPList),
    "GetItems");
                webApp.ClientCallableSettings.AnonymousRestrictedTypes.Add(typeof(Microsoft.SharePoint.SPList),
    "AddItem");
                webApp.Update();
    Console.WriteLine("Disabled Anonymous access!"); 
    http://www.fiechter.eu/Blog/Post/12/Create-a-survey-for-anonymous-users-on-Office-365
    If this helped you resolve your issue, please mark it Answered

  • Error while editing a list item - SharePoint 2010.

    Hi ,
    i have 2 site collection one is read only site and another one is authoring site. both site collection are inside single web application and referring same content database.
    when i try to edit a list item using authoring site i am getting the below error message. this is for all the lists in the site.
    " the item is no longer available. it may have been deleted by another user. click ok to refresh the page."
    i am able to edit the list items using read only site as an administrator.
    please help me on these.

    This could be a permission issue, refer to the following post for more information
    http://techtrainingnotes.blogspot.in/2012/02/sharepoint-error-this-item-is-no-longer.html
    Cheers,

Maybe you are looking for

  • Clients Agent no longer installing all components properly

    I attempted an upgrade to R2, but it failed, so I reverted back to a VM snapshot before the upgrade attempt and all is well except for installing the client during OSD. The imaging process works fine, but once complete the agent isn't listing all the

  • Every other time I type cmd k for keyboard in Logic Pro X, the track that is selected is muted.

    The title kind of says it all. Every other time that I press the shortcut for onscreen keys, the selected track is muted. By that I mean if I press cmd+k it brings up the keyboard unmuted, then press cmd+k to get rid of it and it's still fine, but th

  • Essbase 9 White Paper

    Hi all,<BR><BR>I'm looking for any white paper discussing Essbase 9 improvements over 7.x. Can anyone point me to any link?<BR><BR>Regards,<BR>Gerd

  • Running dvd from MacBook Air

    I am trying run a dvd on my new Macbook Air, I am running the dvd from my iMac but it is slow and not running correctly. Any suggestions on running dvd's from the network to the Macbook Air?

  • Navigationservice.getInitialNodes in Web Dynpro Application

    Hi, I am trying to develop a Web Dynpro application which will return the NavigationNode of a logged in user. I created a navigationService object as shown below INavigationService navigationservice =           (INavigationService) PortalRuntime.getR