How to retrieve the body of an email from outlook using ADF - azure

I am trying the retrieve the body of an email from outlook. if there is any connector in ADF from where I can directly retrieve the data and store in ADLS will be helpful

After my research, ADF does not have a mail connector:
https://learn.microsoft.com/en-us/azure/data-factory/connector-overview
You can use Azure logic app to get the body of the email and save it in ADLS.
You can use When a new email arrives and Create blob connector in the azure logic app:
You can click Add dynamic content to add the email body.

Related

Get newest azure blob storage files to Logic Apps Send Email flow

How can I get the newest file to be attached to the Logic Apps Send Email (Outlook) email body? For example, there was a workflow on my Azure Function that stores the file into Azure blob storage the file will append based on date information on the name of the file, and then this Send Email will attach the file into the body email.
Based on the above shared requirement, we have created a sample workflow in our local environment.
In our workflow we have hardcoded the blobname using the compose action, post that we are checking whether that particular blob is present in the storage account or not.
If the blob is present in the storage account it will pull the content of the blob & it will trigger an email(used Send an email action to sent email) by appending the content of that blob as an attachment to that email.
Here is the logic app screenshot:
Here is the output screenshot:
Note:
In our workflow, we have hardcoded the name of the blob. In your case, you need fetch the blobname from the function app output.

Azure Logic app - Send the whole email to a rest call as a .eml attachment

I am trying to create a logic app with email received trigger.
When email has multiple attachments, I am able to loop and make a http call per attachment
However we have to send the whole email as http call by creating .eml file of the email with attachments.
Pls advise
While the built-in actions do not seem to support this out of the box, you can make a Microsoft Graph API call to get the MIME content of a message.
There is no official connector for all available Microsoft Graph APIs, so you would need to use the HTTP with Azure AD Connector instead.
The response body content could then be written to a file in blob storage using the Create Blob Action.

How to read email as an attachment in Azure Logic App

Currently, I am trying to fetch the attachments using the Azure logic app whenever any new mail arrives in the outlook, but any mail that has attachment as a mail, it is not able to fetch those attachments.
I test with email attachment and will get this same problem, then I check the connector reference and I suppose I find the reason.
There is a description about outlook connector:
Support for certain attachment types (EML, MSG, ICS) is currently
limited. These attachments will be skipped when processing emails.
More details you could refer to the reference page.

send email with attachment in Azure Data factory

I need to send an email with attachment according to a condition from table. For e.g I have a table XYZ which has column "Flag" and if the column flag value is "N" then it has to pick the values with value as "N from the table and write into a file. This file has to be sent as attachment in an email in Azure data factory. f you can help with the process for this in Azure data factory it should be great.
Per my researching, there is no such activity could send email with attachment,you could vote up this feedback to improve this feature.
As workaround, you could adopt #Raunak Jhawar's suggestion that using SQL Connector Trigger.
Then you could get the value you want into Azure File Storage or Azure Blob Storage.
After that,send email with attachments following this tutorial. Here is s similar case for your reference:Azure Logic app : How to Send an Email with one or more attachments after getting the content from Blob storage?

Azure Logic App - Simple Email Template for JSON Request Body

I've got a simple Azure Logic App, which receives and emails out JSON data in a very basic HTML table format (created with a convertToTableAction).
Does anyone know of a way to instead send this out using an email template?
I've got a SendGrid account set up with my Azure subscription, but there doesn't seem to be any way to specify a template id with the Send email (v2) action in Logic apps.
I can't quite see how I'd edit the Logic App code to use the only SendGrid api that seems to support sending templates V3 either. (It is my first Logic app though, so I could well be missing a trick)
Really, any advice on how to send out a templated email would be appreciated.
As you mentioned that the logic app integrate the Sendgrid(V2) currently. You could give your feedback to Azure team.
If azure function is acceptable, you could add and run custom code for logic apps through Azure Functions
there is two way to do it ..
1) Using SendGrid Connector :
You need to create one azure function or web API pass request as your JSON outout string and replace with html content and get html in response
Pass html response in body of the send email action of SendGrid Connector
Details of SendGrid Connector
Please refer this link for Json data replaced to html
my explanation is very short but if you don't understand then i will help you in details

Resources