Notifications
Announcements
No record found.
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.
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?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2