Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Embedding canvas app in model driven

Posted on by 595

Hi All,

I have a requirement that I have to embed a canvas app in a model-driven app where I need to fetch an attachment which is added an annotation(note) and display that in pdf viewer through embedded canvas app.. Please suggest me to achieve this

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Embedding canvas app in model driven

    Hi Abhilash,

    It is very glad that your achieved the functionality.

    Do you mean that pdf content can still be used directly in PDF Viewer control?

    Is your solution similar to the third reply in this thread?

    https://powerusers.microsoft.com/t5/Building-Power-Apps/view-pdf-in-pdf-viewer-control-using-base64/td-p/551826

    It will be really appreciated if you could share the solution.

    Regards,

    Clofly

  • Abhilash M abi Profile Picture
    Abhilash M abi 595 on at
    RE: Embedding canvas app in model driven

    I Achieved my requirement by saving pdf content in filestorage field then i'm passing that value to pdf viewer in canvas that works for me..

  • Abhilash M abi Profile Picture
    Abhilash M abi 595 on at
    RE: Embedding canvas app in model driven

    I tried PCF Control it loads image but for pdf it will open full screen. that didn't suit my requirement.

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Embedding canvas app in model driven

    Hi Abhilash,

    I am not sure whether PDF viewer control of canvas app is able to achieve the functionality, because according to documentation, the current control only supports URL that directly links to pdf file,

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-pdf-viewer#limitations

    while pdf files and other attachment files are saved in base64 string format in Dynamics, we may need to read and render them programmatically.

    You could refer to PCF control as alternative, pdf is supported by the PCF control.

    https://github.com/OOlashyn/PCF-AttachmentGalleryControl

    Regards,

    Clofly

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.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans