views:

637

answers:

2

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?

A: 

Every library has a GUID as an identifier. You can programmatically get that GUID and get the url from that.

vimpyboy
how would I then use this in a hyperlink to an item in the document library.
AndyM
That would link you to the library, not the document IN that library right?
MrChrister
+2  A: 

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