Skip to main content

Notifications

Power Apps - Microsoft Dataverse
Answered

Dataverse Image to PDF

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

Is it possible to include a Image from a Dataverse Image column on a PDF in the same way you can from Onedrive or SharePoint?

 

I know only the thunbnail is saved in DV but that's fine for my purposes as its a signature so low res is fine

 

Thanks

Categories:
  • Verified answer
    Re: Dataverse Image to PDF

    Thanks but I have the image in the app and needed to include it in a Flow that converts HTML to a PDF

     

    After experimenting with different options, in the end the solution wasn't too complex:

     

    Step1:  Create a variable that contains the image but when assigning the image convert it to base64 as per below:

    Set(gblVariable,Substitute(JSON(myImage.Image,IncludeBinaryData),"""",""))

    The substitute function strips the quotation marks from the base64

    Step2:  Use the variable in your HTML ie: <img src'"gblVariable"'>

    Step3: Convert the HTML to PDF using well publisized Flow methods

     

    So actually once you have the image it's no more complex using Dataverse than using SharePoint or OneDrive

     

    I found that you can use simple Dataverse Lookups when assigning the variable but more complex Lookups threw an unexplained error.  Best to have the image in your app (even if it is hidden) and then assign as above

  • Ram Prakash Profile Picture
    Ram Prakash 5,154 on at

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard

Featured topics