Embed image in Send mail from an attachment

Olesen, Brian Peter DK - LRI 26 Reputation points
2022-07-04T13:16:45.41+00:00

Im recieving an email with a attachment which is a img(The same img is also in the body). I want to forward that img, but i can't find a way to add that img to the body of "Send mail(V2)".

More specific it's the mail from Power BI subscription, the default mail isn't pretty and would like to add custom text and so on to the mail sent out to consumers.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-07-06T10:20:40.61+00:00

    @Olesen, Brian Peter DK - LRI Thanks for reaching out. As per your requirement you need to leverage the Compose action or string variable and define/build your HTML content on the compose or string variable as below. Further you need to leverage base6 function to convert your content rather than passing the content directly in your compose action as below.
    I have tested the workflow and I see the image in the body rather than attachment on my send email. You can leverage the other HTML tags to format your email as per your requirement. Please make sure you are formatting the text before and not in your Body of your Send Email action.

    218123-image.png

    Feel free to get back to me if you need any assistance.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


1 additional answer

Sort by: Most helpful
  1. Kamlesh Kumar 3,866 Reputation points
    2022-07-04T16:38:23.173+00:00

    Hi @Olesen, Brian Peter DK - LRI ,

    Thank you for asking this question on the Microsoft Q&A Platform.

    I would suggest to try the below steps,

    1. You can download the image to blob location from incoming mails.
    2. Then get the content of that image from blob location.
    3. Put the attachment content as a content. Please refer the below screenshot for reference,

    217491-image.png

    Regards,
    Kamlesh Kumar
    BizTalk Techie

    Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

    Want a reminder to come back and check responses? Here is how to subscribe to a Notification

    If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.