简体   繁体   中英

How to get structured email headers from Outlook and process them in Power Automate Desktop

I am looking for a way to get structured email headers from Outlook and process them in Power Automate Desktop.

Assumptions

You can retrieve email headers in Outlook by using the following URL https://support.microsoft.com/en-us/office/view-internet-message-headers-in-outlook-cd039382-dc6e-4264-ac74-c048563d212c

The Challenge

The mail headers obtained from the client application Outlook are in text format and very difficult to handle.

Constraints

We assume that we are parsing mail headers from an attached .msg file. It is not possible to retrieve mail headers in json format using the Graph API.

Fortunately, Power Automate Desktop supports execution of VB script, JavaScript, Powershell, and DOS commands. It may be possible to take advantage of these to turn text into Json format, etc.

如果可以在 VBS 中使用 Outlook 对象模型,则可以通过使用MailItem.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x007D001F")读取PR_TRANSPORT_MESSAGE_HEADERS MAPI 属性从收到的邮件中检索 MIME 标头

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM