Yonas Tesh
Yonas Tesh

Reputation: 66

How to email the of contents of a file from a Azure blob

I wanted to connect to azure blob, get the file, read the contents of the file and send the content of the file through through an email.

Here is a picture description below.

enter image description here

NOTE : in the picture i want the content to be sent via the "Body" in the email.

Thanks for the help.

Upvotes: 0

Views: 2204

Answers (2)

Yonas Tesh
Yonas Tesh

Reputation: 66

I dabbled with Azure logic apps to solve the last problem i posted ( i.e. How to dynamically get the file content from azure blob storage without specifically giving it the file name ). The answer was, just to pass the "Get blob content using path" connector instead of using "Get blob content " connector.

As an example, i've attached a picture below. In the picture - i'm trying to solve a problem : How to get and Parse(in to JSON) a csv file content loaded from azure blob storage and send the parsed file content into to my email.

NOTE: the parsing from csv to JSON is a custom azure function

If anybody wants the parsing azure function code, i can post it underneath later.

Hope this could help for anyone looking to solve the same kind of problem.

enter image description here

Upvotes: 0

Joey Cai
Joey Cai

Reputation: 20067

As you would get the blob content to send to email, you could add a "Get blob Content" action before "Send an Email" action.

enter image description here

For more details, you could refer to this article.

Upvotes: 1

Related Questions