I have access to a document library item URL. E.g. /Documents/Forms/DispForm.aspx?ID=585
Based on this information, I would like to get the URL of the document associated with this item. E.g. /Documents/document-name.pdf
All using only javascript.
E.g. Pseudo-code:
function get-document-name(item-url)
{
return document-url; // E.g. /Documents/document-name.pdf
}
Is this possible?