cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

RE: HOW TO GET HTML TEXT FOR IMAGE

Hello, 

 

Good morning and I hope this email finds you well. Please can anyone help me with finding how to convert an image to a HTML text so I can then use it in my Power Automate Body for my email as the signature image?

3 REPLIES 3
BCBuizer
Multi Super User
Multi Super User

Hi @ZeeScience ,

 

To convert a single image to Base64 so you can attach it to an email on order to be able to embed it in the email body and quick way is to:

 

1. Add a temporary screen to a canvas app. 

2. Add an Image control to the screen.

3. Set the OnSelect property of the Image control to:

 

Copy(
    JSON(
        Self.Image,
        JSONFormat.IncludeBinaryData
    )
)

 

4. Add the image you wish to convert to the app media via in the Media pane. You can access that by clicking the Media icon:

BCBuizer_0-1716409080474.png

 

5. Set the Image property of the Image control to show the image you just added. This can easily be done by drag/dropping the item from the Media pane to the Image control.

6. Select the image control by either previewing the app and clicking the Image control or by pressing the Alt key and clicking the Image control.

7. Paste the Base64 version of you image wherever you need it. When embedding in an email, you need to use it as the 'Attachement Contents' of one of the attachements. Also you need to add a Attachements name and generate a little HTML code to embed the image to the mail body:

BCBuizer_1-1716409577609.png

8. Delete he temporary screen you created in step 1 and remove the image you added to the app Media in step 4.

 

 



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Thank you so much. I was able to later figure it out by using a base64 online website.

BCBuizer
Multi Super User
Multi Super User

Hi @ZeeScience ,

 

Indeed you can use online tools for Base64 conversion as well, but in case you're not comfortable with using those, the above method does the trick as well. 

 

Furthermore, you can also use parts of this method to make the picture dynamic in case you'd, for example, want to include a picture of the adopted animal in the confirmation email that is a part of the Power Up challenge.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Helpful resources

Announcements

Important Update | Power Up Community READ ONLY July 22 – July 28

Dear Community Members, As you may have read, the Power Platform communities are transitioning to a new platform and to access will be set to READ-ONLY mode during the transition. Key DatesTo ensure current learners have adequate support in the final week of the cohort, the Power Up Program Community will transition to READ-ONLY mode starting July 22nd, the platform will transition to READ-ONLY mode until July 28th. Power Apps, Power Automate, and Power Pages communities will be read-only July 16-22, 2024.During this period, members will not be able to start new threads or Kudo, Comment, or Reply to any posts, but will be able to search and review past threads or solutions. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. Learners will be able to sign in to the new Power Up Program community experience, starting July 29th. If you registered for community using your learnwithpowerup account, you will not receive an email, but should be able to sign in successfully if you are signed in to My hub.  If you need help with your community account, please submit a request at aka.ms/PPCommSupport We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead! 

Learn what to expect in the Power Up Program

Since its inception in 2022, the Power Up Program has evolved based on feedback from learners and Microsoft Partners and customers. Today's Power Up learners can expect to learn the fundamentals of Microsoft Power Platform in the accelerated seven-week, video-based Power Up Maker course.   Hear from Principal Program Manager, Dimpi Gandhi to discover the latest enhancements and meet the Microsoft MVPs, Rory Neary and Charlie Phipps, who partnered with the Microsoft Power Up Program to create the Power Up Maker course to guide learners to use the Microsoft Power Platform to develop custom applications, build dazzling report dashboards, or create efficiencies through automation.  

Welcome to the Power Up Program Community

The Power Up Program is a free upskilling program where nontechnical people can learn the fundamentals of Microsoft Power Platform. The Power Up Maker course is a seven-week self-paced virtual learning plan that include video-based objectives featuring Power Apps, Power BI and Power Automate.  As a member of the Power Up Community, you can grow your skills and build connections. You can post questions to get help with the curriculum and hands-on exercises from experts and peers in the product boards.  Check out the Community Information & Feedback board to find help or provide feedback with the community experience, and please take time to post in the Social board to tell us more about yourself. If you're new to the Power Up Program and looking for information to register. You can sign up at PowerUp.Microsoft.com.

Users online (1,384)