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
Were you able to achieve this?
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.
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
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,409
Most Valuable Professional
nmaenpaa
101,156