You need to sign in to do that
Don't have an account?
Sukhpreet Lotey 6
I am trying to create a UI design where a button click would open up a record's attached pdf file. Although I am able to do this using javascript as follows:
How to open an attachment URL within Salesforce1 app?
I am trying to create a UI design where a button click would open up a record's attached pdf file. Although I am able to do this using javascript as follows:
var attachmentUrl = '/servlet/servlet.FileDownload?file=00Q633030006G9k'; window.open(attachmentUrl)but it opens as a downloadable file in mobile. I need to use the built-in salesforce preview to show this file.
https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/rn_chatter_files_preview_player.htm