AnswerBun.com

How SP generates ID for each list item

SharePoint Asked on December 13, 2020

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

DispForm.aspx?ID=__ck8100530003000300030013008300g40000300&Source=http%3A%2F%2Fswsudc07%3A9200%2FLists%2FQuote%2FQuote%2520List%2Easpx&ContentTypeId=0x0

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

I’m using SP 2013.

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

Workflow task – How to set priority when assigning a task

1  Asked on December 28, 2021 by etho201

     

SharePoint 2010, how to change column width in list view

2  Asked on December 28, 2021 by j-osborn

     

Logical Architecture of SharePoint

1  Asked on December 26, 2021 by dasarp

   

Link Tracking Breaks Large List Views in Modern

2  Asked on December 26, 2021 by eliot-at-projectfive

       

Manipulate Filters in Javascript

1  Asked on December 24, 2021 by out-shire

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP