I want to be able to link to sharepoint documents without having to refer to the document name which may change. Is there anyway to programmatically add a unique key to the meta-data and then somehow use this in a link?
Asked
Active
Viewed 2,248 times
4
-
I don't think that can be done but it sure would be handy. – Alex Angas Nov 14 '08 at 17:55
2 Answers
4
You can link to the ID of the document in the library. That won't open the document, but it will always take you to the correct file, regardless of the file name.
I don't know how you could link directly to the document without the document name.

MrChrister
- 3,555
- 5
- 22
- 34
2
Every library has a GUID as an identifier. You can programmatically get that GUID and get the url from that.

Mikael Söderström
- 1,008
- 8
- 15
-
how would I then use this in a hyperlink to an item in the document library. – AndyM Nov 13 '08 at 10:28
-
That would link you to the library, not the document IN that library right? – MrChrister Nov 13 '08 at 19:16