How to add image to email in Power Automate "Send an email (V2)"

  Рет қаралды 37,952

Alireza Aliabadi

Alireza Aliabadi

Күн бұрын

In this video you will see how to add image to the email that you send from Power Automate flow. In this video we will store the image inside a Power Automate variable and then embed it in the email body HTML.
Microsoft Power Automate (Flow) Crash Course
www.udemy.com/course/microsof...
Microsoft Power Automate for Power Apps developers
www.udemy.com/course/microsof...
To enroll in my Udemy courses see below link for discount vouchers
sslwsh008.securedata.net/dotn...
Content
- 0:00 introduction
- 1:07 course coupon give away
- 1:39 problem definition
- 2:30 adding image file to Power Automate variable
- 6:51 Encoding image to be stored in a variable
- 10:27 troubleshooting the faulty image
- 12:52 Conclusion
Contact me
- LinkedIn / alirezaaliabadi
- Twitter / aaliabadi1
- Instagram / alireza.aliabadi_ig
- Facebook / alireza.aliabadi.fb

Пікірлер: 89
@AlirezaAliabadi
@AlirezaAliabadi 2 жыл бұрын
In this video I store image directly inside Flow. There are a few videos on KZbin that show you how to add image to Power Automate e-mail, but all of them ask you to upload your image to SharePoint, OneDrive or some other storage. Let me know what you think 🙂
@iyengar007
@iyengar007 2 жыл бұрын
You Sir, God send. Congrats on the 8K subscribers. Thank you for the code. You are kind to share it with fans. And Sir, the session was as good as "A sip of tea and biscuits while watching the rain with smell of wet soil". All to my liking.
@AlirezaAliabadi
@AlirezaAliabadi 2 жыл бұрын
@@iyengar007 oh my god 🙏 this comment has nice touch of poetry 😊 Thank you. I am glad you liked it.
@DadBiker13
@DadBiker13 2 жыл бұрын
Thank you for the video Ali ! I use power automate on my work laptop where I share a lot of images on the body of the email. I have the images saved in one drive and I have successfully been able to send it via power automate. Just a small difficulty that I face, I don’t know how to centre align the image. All the images I have been able to send are left aligned. Please let me know if there is anything that I can do.
@sambaker81
@sambaker81 Ай бұрын
Thanks so much! I don't HTML at all and was able to follow along and implement in my own flow.
@ajlong404
@ajlong404 2 жыл бұрын
Very well done! Very well presented! Thank you!
@laszlogyor6628
@laszlogyor6628 Ай бұрын
Great tutorial. Thank you.👍
@anthonyleduc
@anthonyleduc Жыл бұрын
Wow. Very simple and brilliant
@namayoki
@namayoki Жыл бұрын
Excellent! Thank you for sharing.
@user-su4tb6xu5l
@user-su4tb6xu5l Жыл бұрын
well noted! very easy to understand. thanx.
@shevan613
@shevan613 Жыл бұрын
Works really well, thank you!
@ECHohem
@ECHohem 9 ай бұрын
Despues de muchos videos de youtube intentando poner una imagen en el cuerpo apuntando desde una web o onedrive. Al fin pude llegar a este video con la solucion definitiva. Muchas gracias Alireza!! After many KZbin videos trying to put an image on the body pointing from a website or OneDrive. I was finally able to get to this video with the definitive solution. Thank you very much Alireza!!
@clacby
@clacby 9 ай бұрын
Wonderful trick! Thanks so much
@MikeR-tz7oy
@MikeR-tz7oy 7 ай бұрын
Thank you Alireza. This method is extremely useful if you cannot use a saved image (due to limited access) and cannot create a multi-part message (not possible via Send an email (V2)).
@Argentinian
@Argentinian 13 күн бұрын
Great work, thanks!
@RaviShankar-ou1ly
@RaviShankar-ou1ly Жыл бұрын
Awesome Alireza ! your video is very helpful. Thank you!!
@akshaynm
@akshaynm 2 жыл бұрын
I was looking for the same thing Ali!! 🙂 Thanks a ton... !!! 😊😊😊
@ivanm.9748
@ivanm.9748 Жыл бұрын
Thank you so much! That helped me a lot! Greetings from Brazil
@pierocardenasbenites8930
@pierocardenasbenites8930 4 ай бұрын
love you Alireza, thank you so much
@alejandrovr2000
@alejandrovr2000 Жыл бұрын
Thanks it helped me a lot! :)
@alakshminagasri3011
@alakshminagasri3011 2 жыл бұрын
Your videos are awesome👏, I am following your udemy courses also. Really very thanks for your videos.
@victoraguiar1660
@victoraguiar1660 Жыл бұрын
Thanks a lot for sharing this. Believe it or not, this is the third time doing it and I never get it and have to come back to your videos.
@ricbarri
@ricbarri 11 ай бұрын
Excellent
@rishiagrawal9613
@rishiagrawal9613 Жыл бұрын
Fantastic
@tajoumaru503
@tajoumaru503 Жыл бұрын
Thanks for the useful tips on this. How about using PA to embed multiple images uploaded to a MS Form in an email?
@justerick_9
@justerick_9 11 ай бұрын
i am seeing it when you already have 12.6 K subscribers... growing more...good luck :)
@barunroyghatak4380
@barunroyghatak4380 2 жыл бұрын
Nice video Ali 👍
@sweatshoes26
@sweatshoes26 Жыл бұрын
This was excellent. How would you embed a second image within the same email?
@akshaynm
@akshaynm Жыл бұрын
Hello Ali, I was wondering on how we can add image over an image using PowerAutomate. Best if you can teach that technique too. Many Thanks!!
@WasanthaMendries
@WasanthaMendries Жыл бұрын
We highly appreciate if you can explain how to add two coloum images in share point list to power automate email sending.
@almostatheist1337
@almostatheist1337 2 жыл бұрын
Hi Alireza, thank you very much for the video. I've followed each step, but I'm getting a "maximum request length exceeded" error when trying to save. Any ideas how I can fix this? I haven't been able to find a solution on Google. Thanks in advance.
@pierrickdefossez3157
@pierrickdefossez3157 2 жыл бұрын
Very useful sir, thanks! I was wondering if the encoding process (jpg>txt) could be added to the flow? This way, no matter the picture you are targetting on a SP library or Onedrive, the flow would do the job for you. If you can encode a targetted file, then the variable you are using in the email would be the string coming from this embed encoding process.
@AlirezaAliabadi
@AlirezaAliabadi 2 жыл бұрын
When you use "get file content" or "Get Attachment" actions, the content that you get is already encoded string. So that is much easier than what we did. I didn't go there because there are a few good videos on KZbin that explain that approach.
@pierrickdefossez3157
@pierrickdefossez3157 2 жыл бұрын
@@AlirezaAliabadi thank you! I just tested but the result is the same error you got in your two first attempts : the image doesn't show up but there is a broken icon instead. This time, I don't know if notepad can solve the problem
@Poryotis
@Poryotis Жыл бұрын
@@AlirezaAliabadi Indeed! However, is there still another way if you have an image that's not stored in SharePoint or OneDrive but still in MS 365 somewhere? For instance the thumbnails SharePoint creates for an image field? They are typically not stored in any location but generated. Want to be able to encode those.
@undiaconsusy7322
@undiaconsusy7322 Жыл бұрын
@@pierrickdefossez3157 @Alireza Aliabadi me pasa lo mismo solo sale icono roto con una X
@Worrelpa
@Worrelpa 2 жыл бұрын
Hi Alireza, great info. Just sharing some of my experience with constructing email with Powerautomate Email and images are so tricky. The base64 encoded image options never worked for me with outlook desktop. Works fine with outlook for the web and other web. Asked email clients such as gmail. Hoping Microsoft work this out with the new outlook one they are working on to get it to web standards. Only reliable way I have found is hosting the images in a publicly available site like the company internet site. As for the emailV2 action it has so many bugs in it. What I ended up doing was constructing the html with a free online editor. Then dropping it into a compose action. Which can be useful for repetitive sections of emails like signature, legal disclaimers and image branding. The output I just drop into the send email V2 action. It just works that way no strange issues when that action switches between its rich text editor and html mode. One of the worst parts about this is that you cannot just create a signature or template in outlook online and have Powerautomate use that every time when sending you emails. That would be so much easier. Thanks again.
@AlirezaAliabadi
@AlirezaAliabadi 2 жыл бұрын
I am sure you noticed I never switched out of code view in email body 😉 The text editor has lots of issues in Power Automate UI, but I noticed we can minimize the issues by putting HTML elements in variables and minimizing the complexity of tags in the email body. To be honest, I tried to shy away from Send an email (V2) bugs and workarounds. That can be a separate video by itself and I should probably do that. Typically Microsoft reacts quickly when we public shame their imperfections in a KZbin video 🤣 I have one of those for next week, but not on sending e-mail.
@mkavo
@mkavo 2 жыл бұрын
Hi Phil - I have same issue with the image not rendering in Desktop Outlook but fine in Web, I have tried Alireza's way and other youtube video ways but still not working. Do you know of a video that may help me fix? Cheers!
@Worrelpa
@Worrelpa 2 жыл бұрын
@@mkavo only way I could do it was host the images on the internet. Then link to them from there. That works in all. You still have to press the download button to view them in the desktop client but it works.. Eventually the outlook desktop client will be replaced with a web compatible one. Called outlook One It is a work in progress. Though I wouldn't expect to see it being mainstream for a few years. As the current version of it has numerous limitations. Though it is only on preview.
@mkavo
@mkavo 2 жыл бұрын
@@Worrelpa One way I tried was have the image in Site Assets folder in the SharePoint site and use Get file action, then Compose with a dataUri function then put this in Concat() in a variable to put in the email! , Doesn't work !! Am i using the right functions?!
@Worrelpa
@Worrelpa 2 жыл бұрын
@@mkavo the files need to be in a location with anonymous access. So no security Infront of the files or login promos so an anonymous link from SharePoint for each file should work
@MatthewLCarter
@MatthewLCarter Жыл бұрын
Thank you for this video Alireza, do you know (being greedy) if there is a way to have text overlay the CEO image? I have a request to make it like a postcard with the CEO saying "Great Job !"
@user-dh8jh7zy1g
@user-dh8jh7zy1g 2 ай бұрын
Hello Ali, This is really awesome. I used the exact flow you mentioned in the video and encoded the image, then added it to the email body. However, the image is still not displaying in the email. Could you please help?
@jennylin6015
@jennylin6015 Жыл бұрын
Very wonderful video and give me more and more inspiration. I have a question that If I want to insert multiple pictures in E mail and I don't know how many pictures , because these were all uploaded by others to sharepoint list, that's are variable. How could I do?
@Gustavo-uc9rr
@Gustavo-uc9rr Жыл бұрын
Hi Jenny, it depends on how you wanna trigger this flow. Is it triggered everytime someone uploads an image? If your answer is yes, you can easily use Sharepoint "Get Item" action so it will allow you to dinamically insert the base64 encoded image into the html img tag since this action will provide you with a dynamic variable containing the image content.
@hasanelabdullah125
@hasanelabdullah125 Жыл бұрын
Hi ,I have a question, I am using sharepoint list with about 900 Items.. I made a flow to send an automatic Email if some criteria met after running the flow I don't get any error but no email was sent and I keep getting this info : "ActionBranchingConditionNotSatisfied" what does that mean and how I can get rid of it. thank you very much
@iamdeepshekhar
@iamdeepshekhar 4 ай бұрын
I came across this amazing video today. I also want to enroll to your Power Automate course, how can I avail this coupon?
@revaya15
@revaya15 Жыл бұрын
hey thank you for the video! for me it worked but i cant see the picture, it show a little box with an X inside. do you have any idea what can i do?
@hi_vishy
@hi_vishy Жыл бұрын
I want to add recipient's profile pic in the mail body as well but couldn't do. I was able to insert the image though.
@cosmincirnu1036
@cosmincirnu1036 Жыл бұрын
Hi, how can be resized in mail output at 50% for example? on my situation no matter what size i put in variable the picture is same on email. Thanks!
@ReginaldNdidi
@ReginaldNdidi 10 ай бұрын
Same issue here. I didnt need to use the method in the video to get the image to appear. I simply added the image in the html code the traditional way. However it comes up way too large in the email no matter what i do. Did you find a solution??
@eliasvargas4948
@eliasvargas4948 2 ай бұрын
Hi, I hope you help me, I am sending an image from Power Apps in base64. This codification has the format required to add to body of email, but when I send an email, the image is cutted, just can see it a line of the image.
@bc67
@bc67 3 ай бұрын
This is brilliant. Thank you! My emails are coming across with the image duplicated though. Have you seen this?
@AlirezaAliabadi
@AlirezaAliabadi 3 ай бұрын
Most probably this is the issue kzbin.info/www/bejne/equvpIxvjNuFpNk
@bc67
@bc67 3 ай бұрын
@@AlirezaAliabadi For some reason, when I pasted the text in the Value section of the Initialize variable action, it was duplicating what I pasted!
@AlirezaAliabadi
@AlirezaAliabadi 3 ай бұрын
@@bc67 Well, 2+2 is 4, but sometimes 5. Keep it as general rule when working with Power Platform.
@tajoumaru503
@tajoumaru503 7 ай бұрын
Thanks for the video. Unfortunately, Gmail and some other web-based email clients don't like base64-encoded images, so those don't display in emails. Currently investigating a solution in which the image file is attached to the email and then embedded from the attachment, which according to many would circumvent that problem. Power Automate doesn't make this easy!
@kuroilotus
@kuroilotus 3 ай бұрын
Hello Alireza, I would like to start by telling you that this was a very educative and fun video to watch! I would like also to ask if you would know the solution of my problem here. What if the image that you want to add to your flow and then to your e-mail was added by the user when it complete a form for exemple. How would you make that turn into an image in the email sent by the user created by the user? Thanks!
@kuroilotus
@kuroilotus 3 ай бұрын
@AlirezaAliabadi I have been working on that problem and I have not found any solution yet.
@rehaayalp6707
@rehaayalp6707 Жыл бұрын
Maybe some one may have an idea, By the way thanks for this post. This worked for me on outlook desktop. However when opening email under browser (any browser), image shows up as text. If I resend the same copy of the email from outlook desktop email and check under browser for the resend it is OK? any ideas?
@Gustavo-uc9rr
@Gustavo-uc9rr Жыл бұрын
Hi Alireza, thank you so much for the explanation.. The only problem in the way you add image to the email body is that it doesn't work for Gmail recipients, it works fine for those receivers who use outlook (web or appp) but if I need to send an e-mail to some Gmail user it doesn't. I'd appreciate if you gimme some hint on how to send an email message containing an image in the body (without storing it on Sharepoint 'cause my organization's Sharepoint is private). Thanks again!
@AlirezaAliabadi
@AlirezaAliabadi Жыл бұрын
You are asking the wrong person. I don't even have Gmail account 🙂
@ammarasyraf6636
@ammarasyraf6636 Жыл бұрын
hi have you get any solution for this . im in the same problem with you
@Gustavo-uc9rr
@Gustavo-uc9rr Жыл бұрын
@@ammarasyraf6636 are you going to use only one image for every email or it is going to be dynamically defined (each email will have its own image) ?
@Vishal-cj8un
@Vishal-cj8un 11 ай бұрын
​@@ammarasyraf6636kzbin.info/www/bejne/nWW4dImwjZl_mLssi=aQSA34A5is5Y-Ibq
@LauraLuisaRosenberg
@LauraLuisaRosenberg 2 ай бұрын
Is it also possible to download embedded images in a outlook mail via power automate. I would like to save the embedded images from one email an place them in another email during the flow.
@toym3n
@toym3n 10 ай бұрын
Muy buen video, pero de power automante cuando pones que lo envié a un correo GMAIL no se ve la imgen, ¿sabes porque pasa?
@sunnywaje1810
@sunnywaje1810 Жыл бұрын
I want to resend the mail which I have received but while resending I want my png attachment to be pasted on the body mail and this task is done to be automatically whenever I receive mail.
@smithfrank2224
@smithfrank2224 Жыл бұрын
Yes
@paulavictoriaca
@paulavictoriaca Ай бұрын
Hi! How can i go from code view to normal view? Thanks!
@muhammadzahranramadhan5799
@muhammadzahranramadhan5799 9 ай бұрын
Hello sir i have a question for this flow. I have successfully created flow just like you, sent an email with embeded photos in email body. But i have this trouble that i dont know how to solve it. If i sent the email to a person who look at the email with outlook, then the embedded image is shown. If the person look at the email with gmail, then the embedded image is missing (they cant see it). Any idea how to solve this problem? Thank you
@AlirezaAliabadi
@AlirezaAliabadi 9 ай бұрын
Sorry, but I don't even have a Gmail account. I have no clue.
@orhanozturk1183
@orhanozturk1183 Жыл бұрын
Hi, How do I add an email my signature (with a logo+text) to the email sent?
@Gustavo-uc9rr
@Gustavo-uc9rr Жыл бұрын
Is it a html signature?
@tharunthaduri8865
@tharunthaduri8865 Жыл бұрын
Thanks, it's working but the image isn't showing in Gmail it's showing only in Outlook.
@Vishal-cj8un
@Vishal-cj8un 11 ай бұрын
Did you find any solution?
@ShariqHusain80
@ShariqHusain80 Жыл бұрын
not working for the file size of 500kb
@niwo8
@niwo8 Жыл бұрын
This is great! However if I send an email to someone outside my O365 tenant the file does not come across. Any reasons why?
@Vishal-cj8un
@Vishal-cj8un 11 ай бұрын
I guess that because other email Clients don't support base 64 encoded images.
@Vishal-cj8un
@Vishal-cj8un 11 ай бұрын
kzbin.info/www/bejne/nWW4dImwjZl_mLssi=aQSA34A5is5Y-Ibq
@learningeachday
@learningeachday 2 ай бұрын
When I open commandprompt, it autofills the line with "C: \Users\my.name>". I've tried every which way to enter the file path, but I think that little caret doohickey at the end is throwing the whole thing off. I have no idea how to escape the autofill, which means I'm stuck at almost square one of this solution. :( Anyone know how to bypass this to get to the same blank line that Alireza has?
@AlirezaAliabadi
@AlirezaAliabadi 2 ай бұрын
Type below line and press Enter C: \Users\my.name>CD \
@MegaMpbc
@MegaMpbc Жыл бұрын
how do i insert gif?
@Vishal-cj8un
@Vishal-cj8un 11 ай бұрын
Lol you are asking too much 😂 I struggled a lot to add images only
@yassinechmangui4054
@yassinechmangui4054 2 жыл бұрын
i tested but i have an error msg :( : C:\>Certutil -encode test.jpg test.txt DecodeFile returned The system cannot find the file specified. 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND) CertUtil: -encode command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND) CertUtil: The system cannot find the file specified.
@niwo8
@niwo8 Жыл бұрын
Is the test.jpg file sitting in the root of c:\ ? Change your directory to where the file sits. e.g c:\users\yourname\desktop
How to use Power Automate Get Files (Properties only)
22:56
Alireza Aliabadi
Рет қаралды 32 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
How to Send Email with Image using Power Automate
4:08
KeaPoint Tech Tips
Рет қаралды 49 М.
How to Send an Email with Embedded Image in Power Automate
7:27
Pragmatic Works
Рет қаралды 29 М.
How to parse complex JSON in power automate
20:43
Alireza Aliabadi
Рет қаралды 78 М.
How to add image to email in Power Automate "Send an email (V2)"
5:40
How to embed an image into an email with Power Automate
5:37
Paul Murana
Рет қаралды 16 М.
Sending multi-select choice from office forms to SharePoint
14:33
Alireza Aliabadi
Рет қаралды 1,8 М.
Power Automate flow Expressions Tutorial
35:40
Reza Dorrani
Рет қаралды 106 М.
Power Apps Upload File v2 to SharePoint Document Library
20:07
Shane Young
Рет қаралды 51 М.
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 532 М.
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 725 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 476 М.