Auto-Increment ID for the Sharepoint 2010 List

Hi,
I have a requirement to have a SharePoint List with set of fields. One of the field should store the Custom ID field Ex: "2015-001". Numbers should auto increment the values i.e 011, 002 and so on.
Can someone help me to achieve this requirement via Out-of-box.
I tried using [ID] field and tried concatenating to bring up the value as "2015-001" but it didn't work and I read that [ID] field does not work as expected with the calculated column.
I am aware there SP Designer workflow solution, JavaScript solution, List Adding Event Receiver solutions are available. I trying to find if there is any out-of-Box solution available.
Share your thoughts/suggestion on this requirement

Thanks Alex.
We have used Infopath and we were able to achieve the Auto Increment requirement.
There is another requirement:
Created By and Created should be stamped together in the list. Ex: Field Name: Audit Trails - XXX,03/06/16/15, 05:08PM.
I tried creating a field and used formula to concatenate Created By and Created field...but, When I Submit the form in Sharepoint List, Audit Trail Field is empty.
I tried Submit/Receive data etc..but no luck
Any Suggestions or thoughts?

Similar Messages

  • Web Database for existing Sharepoint 2010 List

    I would like to create an Access Web Database based on a list that already exists in my SharePoint site. Is this possible?

    Hi Adam,
    From your description, my understanding is that you want to create an Access database using an existing SharePoint list.
    In SharePoint lists, there is a button called "Open with Access". You can synchronize the data in a SharePoint list with Access 2010 by using the Open with Access command in the list ribbon. This command creates an Access table linked to the SharePoint
    list, and a supplementary UserInfo table that contains additional information, such as user names, accounts, and e-mail addresses.
    You can also link a table to an existing SharePoint List by using the SharePoint List command in the Import & Link group on the External Data tab.
    More information about Access and SharePoint, you can refer to the link:
    https://support.office.com/en-us/article/Synchronize-a-SharePoint-2010-list-with-Access-2010-975BFB97-C799-4FCE-B7CC-3DB3B397F116
    Thanks,
    Wendy
    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]

  • A chance for YOU to play for the SharePoint 2010 team, in the TechNet Guru World Cup!

    The World Cup is here again!
    Not balls... brains!
    And YOU have been selected to play on our team!
    Yes forum reader, step up and take a shot!
    Slam some techie tips in the back of our nets!
    No dribbling please, just lots of problem tackling.
    So come on Gurus and use your head!
    Show us your skills, wow us with your technique, and win the hearts of your nation!
    All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something
    you had to solve for your own day's work today.
    Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!
    This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!
    HOW TO WIN
    1) Please copy over your Microsoft technical solutions and revelations to
    TechNet Wiki.
    2) Add a link to it on
    THIS WIKI COMPETITION PAGE (so we know you've contributed)
    3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.
    If you win, we will sing your praises in blogs and forums, similar to the
    weekly contributor awards. Once "on our radar" and making your mark, you will probably be
    interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!
    Winning this award in your favoured technology will help us learn the active members in each community.
    Feel free to ask any questions below.
    More about TechNet Guru Awards
    Thanks in advance!
    Pete Laker
    #PEJL
    Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and only
    TechNet Wiki, for future generations to benefit from! You'll never get archived again!
    If you are a member of any user groups, please make sure you list them in the
    Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.

    Now 3 articles:
    Retreiving Server Date using SharePoint JSOM by
    Naveen Sasi
    How to setup, configure and test SQL 2012 SP1 SSRS with SharePoint 2013 SP1 by
    Dan Christian
    Web Sensitive Files and SharePoint 2010
     by
    Johnathan Lightfoot
    And 5 days to go!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Could use some help for creating KPI for Created SharePoint 2010 List Items

    Hello All,
    I am using PPS and connecting to an SP 2010 List as a Datasource.  I'd like to create KPI's against the List showing how many items each individual has created (using the Created column) and set a goal with Indicators showing visual performance (Red,
    Yellow, Green).
    Any guidance is much appreciated!

    I concur with Scott.  Check your Recycle Bin and then also check the Site Collection Recycle Bin.  Once deleted from there, it should free up space.
    As far as the database side of things go, the database would have grown to accommodate the larger list.  If you're trying to recover space on that side of the equation, you'll need to conduct a shrink operation against the database in question.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • Consuming SharePoint 2010 Lists Data in the SSRS 2008 R2 Reports

    When I am trying to create a report using SharePoint 2010 List I am getting error.
    Firstly I opened SQL BI Development Studio, then created Shared DataSource then created Report.
    Then from Report Data pane created Data Source and all was Ok
    But when I am creating DataSet for the SharePoint 2010 List and when clicking on Query Builder and running the query I am getting following error:
    "Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown".
    Now what should I do next to connect my SharePoint List.

    What's your SOAP call look like for the webservice?
    Brandon James SharePoint Developer/Administrator

  • Error in migrating SharePoint 2010 list fields to Office 365 list [CSOM]

    Hi,
    I am trying to migrate a SharePoint 2010 list to Office 365. I created a new ListCreationInfo for a new list in O365. But when i am to trying add fields from SP2010 list, its giving me an error after list.update()  -
    A duplicate field name "fa564e0f-0c70-4ab9-b863-0177e6ddd247" was found.
    if (!l.Hidden)
    ListCreationInformation creationInfo = new ListCreationInformation();
    creationInfo.Title = l.Title;
    creationInfo.TemplateType = l.BaseTemplate;
    List list = web.Lists.Add(creationInfo);
    //Fields in the list
    ctxOnPrem.Load(l.Fields);
    ctxOnPrem.ExecuteQuery();
    foreach (Field f in l.Fields)
    list.Fields.AddFieldAsXml(f.SchemaXml, true, AddFieldOptions.DefaultValue); list.Update();
    Note- l is the SharePoint 2010 List.

    Answer given on StackExchange -
    http://sharepoint.stackexchange.com/questions/128875/error-in-migrating-sharepoint-2010-list-fields-to-office-365-list-csom/129015#129015
    Thanks,
    Thomas

  • Unable to get the SharePoint 2013 List names using Client object model for the input URL

    Please can you help with this issue.
    We are not able to get the SharePoint 2013 List names using Client object model for the input URL.
    What we need is to use default credentials to authenticate user to get only those list which he has access to.
    clientContext.Credentials = Net.CredentialCache.DefaultCredentials
    But in this case we are getting error saying ‘The remote server returned an error: (401) Unauthorized.’
    Instead of passing Default Credentials, if we pass the User credentials using:
    clientContext.Credentials = New Net.NetworkCredential("Administrator", "password", "contoso")
    It authenticates the user and works fine. Since we are developing a web part, it would not be possible to pass the user credentials. Also, the sample source code works perfectly fine on the SharePoint 2010 environment. We need to get the same functionality
    working for SharePoint 2013.
    We are also facing the same issue while authenticating PSI(Project Server Interface) Web services for Project Server 2013.
    Can you please let us know how we can overcome the above issue? Please let us know if you need any further information from our end on the same.
    Sample code is here: http://www.projectsolution.com/Data/Support/MS/SharePointTestApplication.zip
    Regards, PJ Mistry (Email: [email protected] | Web: http://www.projectsolution.co.uk | Blog: EPMGuy.com)

    Hi Mistry,
    I sure that CSOM will authenticate without passing the
    "clientContext.Credentials = Net.CredentialCache.DefaultCredentials" by default. It will take the current login user credentials by default. For more details about the CSOM operations refer the below link.
    http://msdn.microsoft.com/en-us/library/office/fp179912.aspx
    -- Vadivelu B Life with SharePoint

  • How to populate a sharepoint 2010 list from the active directory. How to populate a sharepoint 2010 list with all sharepoint user profiles

    How to populate a sharepoint 2010 from the active directory.
    I want a list of all the computers in the active directory,
    another one with all users.
    I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
    Thanks
    sz

    While
    the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources.  Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
    information that are already in the system?  Now you can with a little InfoPath customization on the contacts list. 
    Here’s our plan:
    Create the contacts list, and open in InfoPath
    Create a data connection to the User Profile web service
    Customize the form adding some text, a people picker and a button
    Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
    Let’s get going!  Before we begin, make sure you have InfoPath 2010 installed locally on your computer.  I also want to give credit Laura
    Rogers and Darvish Shadravan’s book Using
    Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step.  I know it looks like a lot of steps, but it’s easy once you get the hang of it.
    So obviously we need a contacts list.  If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
    From the list, click the List tab on the ribbon, then click Customize form:
    So now we have our form open in InfoPath 2010.  Let’s add our elements to the form. 
    Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
    Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon.  This will add a column to the contacts list called group.
    Below the people picker, insert a button control from the same section of the ribbon as above.  With the button still highlighted, click the Control Tools|Properties tab on the ribbon. 
    Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
    You can drag the button control a little larger to account for the text.
    We should end up with something like this:
    Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
    Add a data connection to the User Profile Service
    Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
    For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL.  Click Next.
    Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
    For the operation, choose GetUserProfileByName.  Click Next.
    Click Next on the next two screens.
    On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
    Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
    Tell the form to read the user from the people picker control
    Click the Home tab on the ribbon.
    Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
    In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
    Leave the condition to default (none – rule runs when button is clicked).
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Click the Show advanced view on the bottom.  At the top, click the drop down and choose the GetUserProfileByName
    (Secondary) option.  Expand myFields and queryFields to the last option and highlightAccountName.  Click ok. 
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
    connection as Main. Expand dataFields, then mySharePointListItem_RW.  At the bottom you should see a folder called group (the people picker control we just added to the form).  Expand this, then pc:Person,
    and highlightAccountId.  Click Ok twice to get back to the Rules pane.
    If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user.  So we need to tell the form what user to load the data for.  We take the AccountID field from the people
    picker control and inject into the AccountName query field of the User Profile Service data connection. 
    Load the user profile service information for the chosen user
    Click the Add button next to “Run these actions:”, and choose Query for data.
    In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
    We’re closing in on our goal.  Let’s see our progress.  We should see something like this:
    Now that we have the user’s data read into the form, we can populate the fields in the contact form.  The number of steps to complete will depend on how many fields you want to populate.  We need to add an action step for
    each field.  I’ll show you one example and then you will just repeat the steps for the other fields.  Let’s update the Job Title field.
    Populate the contact form fields with existing user’s data
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Highlight the field Job Title.
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button.  Click the Show advanced view on the bottom. At the top, click the
    drop down and choose theGetUserProfileByName (Secondary) option.  Expand the fields all the way down until you see the Value field.  Highlight it but don’t click ok, but click the Filter
    Data button, then Add. 
    For the first dropdown that says Value, choose Select a field or group.   The value field will be highlighted, but click the field Name field
    under PropertyData.  Click Ok. 
    In the blank field after “is equal to”, click in the box and choose Type text.  Then type the text Title. 
    Click ok until you get back to the Manage Rules pane.  The last previous screen will look like this.
    We’re going to update common fields that are in the user’s profile, and likely from Active Directory.  You can update fields like first and last name, company, mobile and work phone number, etc.  For the other fields, the
    steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change.  Here’s what the rules look like when we’re done:
    We’re all done, good work!  You can preview the form and try it now.  Click Ctrl+Shift+B to preview the form.  Once you’re satisfied, you can publish the form back to the library.  Click File –> Quick
    Publish.  Once it’s done, you will get confirmation:
    Now open your form in SharePoint.  From the contact list, click Add new item.  Type in a name, and click the button and watch the magic happen!

  • Workflow menu option not showing up in edit form or the ribbon in SharePoint 2010 list

    In a SharePoint 2010 list I created a workflow (in SPD)  and published, but in the Edit Item form, there is no Workflow option. In the ribbon, the "Workflow" button is greyed out.
    But I see this option in other lists.  Where is the setting I can get this workflow option show up in menu?
    Thanks in advance

    Hi,
    Glad to hear your issue solved and thanks for your posting!
    Best Regards,
    Eric
    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]

  • SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.

    Hi there,
    Does someone know in SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.
    Thanks,

    Hi,
    Per my knowledge,
    it is by design that the data type multiple lines of text can only use “contains” and “begins with” operators.
    You can also filter the list view using SharePoint Designer,
    Open your list AllItem.aspx page in SPD ->click “Filter” > in “Field Name” select your multipe line of text field, in “Comparison” will displayed four choices.
    Best Regards,
    Lisa Chen
    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]

  • Get the Sharepoint 2010 Maximum List ID

    Hi Everyone,
    I am facing one issue, in sharepoint 2010 list.
    I have 10 SP List I want the maximum number (ID) of every List
    For Example:- If any user make an entry in List A and it's ID is 10
    If another User make an entry in List B then it's ID Should be 11.
    Regards Sourabh Soni

    Hi,
    Besides the workflow way provided by Romeo, an alternative I can provide is that, you can also use
    Event Receiver with SharePoint Object Model which can help to implement more complex requirements.
    With Event Receiver, we can catch the moment when an item is added to a list which can help to run our custom code in the right timing.
    Here is a step by step sample on creating a simple Item added event receiver for Custom List in SharePoint 2010:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    More information on Event Receiver for your reference:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
    SharePoint Object Model will be helpful when we need to access SharePoint objects:
    SharePoint Object Model -
    SPListItem class
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx 
    Add, Update and Delete List Items Programmatically in SharePoint
    http://www.mindfiresolutions.com/Add-Update-and-Delete-List-Items-Programmatically-in-Sharepoint-372.php 
    More information about
    SharePoint Object Model:
    http://msdn.microsoft.com/en-us/library/ms473633.ASPX
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to enable the SharePoint 2010 and 2013 Developer Dashboard for specific WebApplication or Sitecollection?

    How to enable the SharePoint 2010 and 2013 Developer Dashboard for specific Web Application or Site collection(not for all Web Application)?
    Vishal Goyal

    Hi Vishal,
    I don't think there is option for specific site collection or web application,but there is option of enabling developer dashboard on specific master pages and that is one on of the way you could do it.
    look article on below link to enable developer dashboard on specific master pages
    https://msdn.microsoft.com/en-us/library/office/ff512745%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Let me know if this helps.
    Thanks
    Bhism 

  • Error when attaching workflows to Sharepoint 2010 lists

    Hi,
    I am getting an error when trying to attach an approval workflow to any SharePoint 2010 list on my development server. From the below error in the log I remember that I got this
    same error in Sharepoint 2007 MOSS. It occurs because I have underscores in the server name. I know that I can get around this by either changing the server name or using alternative access mappings to access the server without the underscores. Does anyone
    know of a way to fix this so that the srever name can have underscores which I believe are viable characters in a server name.
    System.ArgumentNullException: Value cannot be null.  Parameter name: g    at System.Guid..ctor(String g)     at Microsoft.Office.Workflow.WrkAssocPage.AssociationOnLoad(EventArgs
    ea)     at Microsoft.Office.Workflow.CstWrkflIPPage.OnLoad(EventArgs ea)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
    Boolean includeStagesAfterAsyncPoint) b06aa203-3cbe-4180-806a-4ed994fbbee9

    I think you are referring to the following KB about special characters. 
    http://support.microsoft.com/kb/905231
    This is not the reason we are experiencing the workflow problem though.  It is related to Internet Explorer security which changed.
    Issues after you install updates to Internet Explorer or Windows
    http://support.microsoft.com/kb/325192
    "Cookies on ASP pages are blocked if the server name contains characters that are not supported by Domain Name System (DNS). For example, you cannot use underscore characters (_) in the server name. This behavior is by design."
    Resolutions include:
    Removing underscore from server name
    Use Alternate Access Mappings
    Extend and map using a web application that uses a URL path that does not use the servername
    Decrease the security level in IE on the Security tab (not recommended)
    Uncomment a line in the web.config which is commented by default (not recommended)
    <add name="Session" type="System.Web.SessionState.SessionStateModule" />
    Hope this makes the issue more clear.  I have updated the SharePoint KB to point to the Internet Explorer KB so people will be aware that the IE change does affect SharePoint behavior.  This is not a SharePoint issue however.
    Fred Ellis - MSFT

  • How to design SSRS report using SharePoint 2010 List Version History

    Hello,
    I am using  Sharepoint 2010 list, i need to design SSRS report using Sharepoint List Version History. Could please let me know how to design.
    Thank you.
    Kind Regards

    You could do that with SQL Server Reporting Services, Please follow the instructions from the link below:
    http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/
    Hope that would work fro you.
    Please Mark as Answer, if the post works for you.
    Cheers,
    Amar Deep Singh

  • Problem in Opening Attachment of Sharepoint 2010 list in new Window?

    Hi,
        I have a sharepoint 2010 list which contains attachments in list items. As per our requirement list should open in modal dialog. when users trying to open attachment from modal dialog its closing modal dialog and opening attachment in same
    window.
       Now the requirement is to open list item attachment in new window.
      I have tried with below script.
    function AttachTargetToAttachments()
     var anchors = document.getElementsByTagName("a"); 
    for (var i=0; i<anchors.length; i++) {
            var anchor = anchors[i];
            if (anchor.getAttribute("href"))
              anchor.target = "_blank";
    This is working when list item opening in separate browser(landing in different page). But when list item opened in modal popup its not working. 
    Please help.
    Thanks in advance.

    Hi,
    If this does not work in modal dialog, the workaround is to avoid to open the dispfrom.aspx page in
    modal dialog when clicking the Title field.
    You can open Allitems.aspx page using SharePoint Designer> locate the title filed <a onfocus=”onlink(this)
    …… onclick =”EditLink2(this,….)”>, remove the onclick =”EditLink2(this,{$viewcounter)}); return false;” from the tag. It will open the dispform page in normal when clicking the field.
    Xue-Mei Chang

Maybe you are looking for

  • How can I deactivate a product from a computer that is dead?

    Hello, I am trying to install my Design Suite Premium onto a new computer.  The only problem is that the 2 computers I installed it on are dead.  I cannot even turn them on - one is a hard drive problem, the other was a 12 year old computer that will

  • Problem with XLIFF

    Hi All, I am new to ADF. I want to localize sample application using XLIFF. I wrote xlf file for each jsff file with the locale 'en_US'. It was working fine. Now i added another locale 'fr_CA'. It is always picking 'fr_CA' properties only. Below is t

  • TechTool scan failure

    I recently ran a techTool scan. The Format Check, the Directory Scan, and the volume structure "failed". What is my next step to repair?

  • WBS element transfer from invoice to Fi Documents.

    Dear Friends, In our business process   1. Project creation   2. Delivery   3. Project Invoice.                    In this case we can see WBS elements in invoice item data. But this WBS elements did not transfer to Financial documents. Please sugges

  • Prepared statments error

    i have this error for my preparedstatments exception in dbMember.createPreparedStatements() : String index out of range : 0 what does it means? i am trying to call my selectMemMaxID function to retrieve the max id from my member table this is my sele