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.
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
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP