How to read email as an attachment in Azure Logic App - azure

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.

Related

Is it possible to use Logic App or Pipeline to check the Excel data attached to an incoming email?

Is it possible to use Logic App or Pipeline to check the Excel data attached to an incoming email?
As shown in the image, the Excel data has OK and NG in a fixed place. There are 4 sheets of this Excel data and I want to check all of them.
enter image description here
enter image description here/i.stack.imgur.com/EGaRq.png
Yes you can do this in a number of ways.
Office 365
You can use the trigger When an Email is received in outlook. This will poll the mailbox at a time set by you. See docs
Non Office 365 Emails
If you need a trigger based on a received email that is not via office 365 then you can use SendGrid to set up a webhook when an email is received. You can then use a logic app to receive this with an HTTP trigger and read the files.
I have a blog post on reading and parsing inbound emails with sendgrid and azure logic apps
Once you have the file you can use the logic app to read the excel sheet using the Excel actions of the office 365 connector.

How to read, update and send a new e-mail using Azure Logic Apps

I have connected my Azure Logic Apps to get triggered connected with a Microsoft Exchange Online Mailbox.
When an e-mail comes,
1st Step:- I need to extract the From Address, To Address, Subject, Body
2nd Step:- I need to create a new e-mail using the extracted details from the received e-mail.
3rd Step:- Send the newly created e-mail to the receipient.
According to my understanding, you can use the When a new email arrives (V3) trigger, and I don’t think you need to extract the received email information, because the trigger will automatically parse the received email information, you only need to create the Send an email (V2) operation in the next step.
In the Send an email (V2) action, you can use the received email information parsed by the trigger, and the email will be sent automatically.
The design of the logic app is as follows:
The following is the received mail information parsed by the trigger:
Maybe you can refer to this official document.

How to get the attachment of an item attachment using microsoft graph api?

I want to retrieve attachment which is inside a mail& this mail itself is an attachment of another mail.I am using microsoft graph api.I have used item attachment api which will extract the message but if the mail has an attachment.How to get the attachment of an attached email?
When emails are attached to other emails, the name of the attachment is usually the subject name of the attached email. You could fire off another Microsoft Graph request with a filter clause specifying that name as the subject. You can then repeat this process to get to the inner attached email and so forth.

Azure Logic App Outlook Connector has wrong Message ID

The Azure Logic App Outlook Connector provides several fields of the current mail, such as MessageID.
Now this MessageID doesn't match the id seen in the header details in Outlook or in the receiving email client.
So here's the MessageID found in Outlook Connector:
AAMkADdhZjg4ODViLTc1OGUtNGRjNC04ZDliLTIwZTg2YzNkZTMwOQBGAAAAAABheCsi2Dw6RL6VGEzI0_HnBwAcT26EfBI9QZDS3n-XAJGgAAAA789EAABtmqUPlGrSTqeUxgoZ3vaxAABn3JRvAAA=
and here's the id found in Outlook or the receiving email client:
<BL0PR210B46864401MB0900339BFCE05D5297C86#BL0PR2101MB0900.namprd21.prod.outlook.com>
Is there any way to related these two ids? We've already tried base64 encoding..
Have you looked at the Internet Message ID option

Filtering Email Attachments based on Email Id in Logic Apps

I am trying to use the Logic App 'List Records' connector for CRM Online to move attachments to SharePoint Online, For example- when an email is created with an attachment in CRM, I am trying to move the attachment to SharePoint Online. I am successful in moving all the attachments from all the emails in the system in one go but I want to filter the attachments based on single email as similar to how we do in C# plugin/workflow by querying the entity "activitymimeattachment". But I couldn't achieve it through filtering in Logic Apps(I have tried entering filter as "_objectid_value eq EMAILMESSAGE") AND also from the given list of entities, or by entering a custom value of the entity as "activitymimeattachment" which is not exposed. My Logic App is Failing . If this entity is not exposed, how can we can get the attachment list for an email?
Please give some suggestions on it...Many Thanks.
Trigger on the creation of attachment event. I am doing this way because using a function I can get the GUID of email.
Microsoft has only exposed attachmentid field.
I was trying to trigger LA on create of Attachment, However logic App was not triggering, even when I was testing it after adding a file on email entity. I think this a bug.

Resources