Hello All - Any suggestions on how to display an existing PDF document (present in notes attachment) in CRM Online (Either in an IFrame or HTML Web Resource?)
Thanks,
Shaik
*This post is locked for comments

Hello All - Any suggestions on how to display an existing PDF document (present in notes attachment) in CRM Online (Either in an IFrame or HTML Web Resource?)
Thanks,
Shaik
*This post is locked for comments
Hi Shaik,
You can do this but it'll be a little bit of work. Check out these two posts:
stackoverflow.com/.../html-embedded-pdf-iframe
stackoverflow.com/.../open-pdf-in-iframe-passing-byte-data
In your web resource, you'll need javascript to query for the pdf note, and if you get one, convert the documentbody from a string to a byte[] then write that to the page.
Hope this helps! I'd appreciate if you'd mark this as Answering your question.
Thanks,
Aiden
Take a look at this project: https://pdfobject.com/
It looks like it deals with different browsers effectively.
For the URL to the PDF, I would consider streaming the pdf to Azure blob storage or other location and provide that URL. As far as I know, CRM attachments are not addressable, so your PDF will need to reside elsewhere to get to it via URL.
Were you able to achieve this?