You need to sign in to do that
Don't have an account?
rotfil
How to download / expose document stored in Document Tab in visualforce
Like you mighta static resource i.e. {!$Resource.resource_name}
How would you do this with a document stored in the Document Tab object? {!$Document.doc_name}
I would rather not include a direct link with document id - doesn't that change from Sandbox to Production?
How would you do this with a document stored in the Document Tab object? {!$Document.doc_name}
I would rather not include a direct link with document id - doesn't that change from Sandbox to Production?
As you are trying to get the document form the document object so there is a way to get it like below :
Note : replace the ID as per your document ID.
But this is not the best practice to refer the document because the document Id will not be the same across sandboxes. so I would suggest go with the below solution.
let me know if this help you !!
Thanks !!
All Answers
As you are trying to get the document form the document object so there is a way to get it like below :
Note : replace the ID as per your document ID.
But this is not the best practice to refer the document because the document Id will not be the same across sandboxes. so I would suggest go with the below solution.
let me know if this help you !!
Thanks !!
Many thanks,
rotfil