<p>In a SharePoint list I want an auto number column that as I add to the list gets incremented. How best can I go about this?</p>

[{'answer_id': 72569, 'author': 'kemiller2002', 'author_id': 1942, 'author_profile': 'https://Stackoverflow.com/users/1942', 'pm_score': 1, 'selected': False, 'text': "<p>it's in there by default.  It's the id field.</p>\n"}, {'answer_id': 72583, 'author': 'MrHinsh - Martin Hinshelwood', 'author_id': 11799, 'author_profile': 'https://Stackoverflow.com/users/11799', 'pm_score': 3, 'selected': False, 'text': '<p>You can\'t add a new unique auto-generated ID to a SharePoint list, but there already is one there! If you edit the "All Items" view you will see a list of columns that do not have the display option checked.</p>\n\n<p>There are quite a few of these columns that exist but that are never displayed, like "Created By" and "Created". These fields are used within SharePoint, but they are not displayed by default so as not to clutter up the display. You can\'t edit these fields, but you can display them to the user. if you check the "Display" box beside the ID field you will get a unique and auto-generated ID field displayed in your list.</p>\n\n<p>Check out: <a href="https://web.archive.org/web/20130413013118/http://blog.hinshelwood.com/unique-id-in-sharepoint-list/" rel="nofollow noreferrer">Unique ID in SharePoint list</a></p>\n'}, {'answer_id': 72641, 'author': 'BrewinBombers', 'author_id': 5989, 'author_profile': 'https://Stackoverflow.com/users/5989', 'pm_score': 7, 'selected': True, 'text': '<p>Sharepoint Lists automatically have an column with "ID" which auto increments. You simply need to select this column from the "modify view" screen to view it.</p>\n'}, {'answer_id': 73422, 'author': 'dariom', 'author_id': 12389, 'author_profile': 'https://Stackoverflow.com/users/12389', 'pm_score': 3, 'selected': False, 'text': '<p>If you want to control the formatting of the unique identifier you can <a href="http://msdn.microsoft.com/en-us/library/ms415141.aspx" rel="nofollow noreferrer">create your own <code>&lt;FieldType&gt;</code> in SharePoint</a>. MSDN also has a <a href="http://msdn.microsoft.com/en-us/library/bb684919.aspx" rel="nofollow noreferrer">visual How-To</a>. This basically means that you\'re creating a custom column.</p>\n\n<p>WSS defines the Counter field type (which is what the ID column above is using). I\'ve never had the need to re-use this or extend it, but it should be possible.</p>\n\n<p>A solution might exist without creating a custom <code>&lt;FieldType&gt;</code>. For example: if you wanted unique IDs like CUST1, CUST2, ... it might be possible to create a Calculated column and use the value of the ID column in you formula (<code>="CUST" &amp; [ID]</code>). I haven\'t tried this, but this <em>should</em> work :)</p>\n'}, {'answer_id': 79813, 'author': 'Sam Yates', 'author_id': 14911, 'author_profile': 'https://Stackoverflow.com/users/14911', 'pm_score': 1, 'selected': False, 'text': '<p>If you want something beyond the ID column that\'s there in all lists, you\'re probably going to have to resort to an Event Receiver on the list that "calculates" what the value of your unique identified should be or using a custom field type that has the required logic embedded in this.  Unfortunately, both of these options will require writing and deploying custom code to the server and deploying assemblies to the GAC, which can be frowned upon in environments where you don\'t have complete control over the servers.</p>\n\n<p>If you don\'t need the unique identifier to show up immediately, you could probably generate it via a workflow (either with SharePoint Designer or a custom WF workflow built in Visual Studio).</p>\n\n<p>Unfortunately, calculated columns, which seem like an obvious solution, won\'t work for this purpose because the ID is not yet assigned when the calculation is attempted.  If you go in after the fact and edit the item, the calculation may achieve what you want, but on initial creation of a new item it will not be calculated correctly.</p>\n'}, {'answer_id': 83293, 'author': 'user15916', 'author_id': 15916, 'author_profile': 'https://Stackoverflow.com/users/15916', 'pm_score': 1, 'selected': False, 'text': '<p>As stated, all objects in sharepoint contain some sort of unique identifier (often an integer based counter for list items, and GUIDs for lists).</p>\n\n<p>That said, there is also a feature available at <a href="http://www.codeplex.com/features" rel="nofollow noreferrer">http://www.codeplex.com/features</a> called "Unique Column Policy", designed to add an other column with a unique value. A complete writeup is available at <a href="http://scothillier.spaces.live.com/blog/cns!8F5DEA8AEA9E6FBB!293.entry" rel="nofollow noreferrer">http://scothillier.spaces.live.com/blog/cns!8F5DEA8AEA9E6FBB!293.entry</a></p>\n'}, {'answer_id': 105826, 'author': 'spdevsolutions', 'author_id': 19086, 'author_profile': 'https://Stackoverflow.com/users/19086', 'pm_score': 1, 'selected': False, 'text': '<p>So I am not sure I can really think of <em>why</em> you would actually need a "site collection unique" id, so maybe you can comment and let us know what is actually trying to be accomplished here...</p>\n\n<p>Either way, all items have a UniqueID property that is a GUID if you <strong>really</strong> need it: <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.uniqueid.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.uniqueid.aspx</a></p>\n'}, {'answer_id': 786529, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Peetha has the best idea, I\'ve done the same with a custom list in our SP site. Using a workflow to auto increment is the best way, and it is not that difficult. Check this website out: <a href="http://splittingshares.wordpress.com/2008/04/11/auto-increment-a-number-in-a-new-list-item/" rel="nofollow noreferrer">http://splittingshares.wordpress.com/2008/04/11/auto-increment-a-number-in-a-new-list-item/</a></p>\n\n<p>I give much appreciation to the person who posted that solution, it is very cool!!</p>\n'}, {'answer_id': 16094572, 'author': 'David Clarke', 'author_id': 132599, 'author_profile': 'https://Stackoverflow.com/users/132599', 'pm_score': 2, 'selected': False, 'text': '<p>I had this issue with a custom list and while it\'s not possible to use the auto-generated <em>ID</em> column to create a calculated column, it is possible to use a workflow to do the heavy lifting.</p>\n\n<p>I created a new workflow variable of type <em>Number</em> and set it to be the value of the <em>ID</em> column in the current item. Then it\'s simply a matter of calculating the custom column value and setting it - in my case I just needed the numbering to begin at 100,000.</p>\n\n<p><img src="https://i.stack.imgur.com/1S1ek.png" alt="enter image description here"></p>\n'}]
['https://Stackoverflow.com/questions/72537', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/12318/']