How SP generates ID for each list item

When you click open an item in an external list, you have a url like this:


I want to know how the ID=__ck8100530003000300030013008300g40000300 is generated, so I can open an item from elsewhere.

I’m using SP 2013.

SharePoint Asked on December 13, 2020

1 Answers

One Answer

When you create an item in a list, SharePoint assigns it a unique ID that it keeps for its entire life. This ID is what you are seeing in the URL for DispForm.aspx. If you need to be able to create URLs that link directly to a specific item, you will need to query the SharePoint list to get the ID, and then generate the URL yourself.

Two easy ways to query a SharePoint list's items programmatically are using the REST API or Web Services, namely Lists.GetListItems.

If you do not need it to be 100% programmatic, you might simply create a view that shows the list item's ID, export your list items to Excel, and then build links using Excel's HYPERLINK function.

Answered by ErinsMatthew on December 13, 2020

Add your own answers!

Related Questions

Create Folder and Upload File to Document Library

1  Asked on November 21, 2021 by chris-harrington


How to create list to track documents uploaded

1  Asked on November 17, 2021 by bstock


when try to open a MS project file, getting an issue.

2  Asked on November 15, 2021 by achiever-sp


Content Search WebPart: query Date and Time field

2  Asked on November 13, 2021 by akshay-dattatray-nangare


Ask a Question

Get help from others!

© 2022 All rights reserved.