I would like to include the photo of the user in "To" of the email in the mail body . Is there a way i can include the image . I can put the image in sharepoint and access it from there . Please let me know the way to do so .
Please check the following flow to see if it works for you...
It's quite simple:
Regarding the DIV, this is the only way I got it to show up on Outlook. Sending images is quite tricky but the suggestion came from another post that you can find here
Please let me know if this works for you and don't forget to mark the question as "accepted" to allow for others to find the solution faster.
Hey there. If you're using Office 365, there's actually an action with the Office 365 Users connector, "Get User Photo".
You could probably just insert that step and then use @manuelstgomes method for inserting in the html email.
Just a thought.
If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
I tried the same , it is working only if i am setting the "File path" by selecting from sharepoint path but if I am passing it dynamically it is showing file not found or removed .
@gautmish sorry for taking so much time to reply. Let's try to figure this out :).
I think I had the same issue in the past. If you pass the value dynamically, then you'll have a string, so you need to encode it. Try the following. Run the flow with the dynamic content and see the content being generated. There are spaces and other characters there, right?
If you copy that URL to the browser, it will probably fail or convert the value for you automatically.
A simple replace will do the trick:
replace(<YOUR VALUE>,' ','%20')
Double-check again and if you see any special character grab the whole URL and copy it here:
Then you know that you have to replace character X with "%...".
If it doesn't work let me know where it's failing and I'll try to help you.
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.