cancel
Showing results for 
Search instead for 
Did you mean: 

Dealing with Azure MIP to send email from outlook 365

philippeboutry
Level 4
Hello, 

I'm trying to send an email using ms-outlook VBO.  Site configuration is office 365 online with Microsoft Information Protection activated. Outlook prompts you to select a label (sensitivity) each time you send a mail.  

I programmatically added the requested headers in the VBO and it works fine if only i launch previously outlook and send a mail manually. If i do not do that, the outlook prompt appears when i run the send mail action. 

Do you have any insight or previous experience to deal with this MIP? 
I found a VBO in digital exchange but it sets a label on file only.

Bes regards

------------------------------
philippe boutry
Blueprism Solution designer
Aubay
Europe/Paris
------------------------------
1 BEST ANSWER

Best Answers

ewilson
Staff
Staff
Hello @philippeboutry,

Microsoft hasn't yet included any MIP-specific capabilities directly in the Graph API (recommended API for working with Microsoft 365) or the native Outlook object model. I believe they've added one or two endpoints in the beta release of Graph, but that's not recommended for production use.

Can you tell me more about the headers you're adding?

Cheers,
  ​

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

View answer in original post

3 REPLIES 3

expertcr
Staff
Staff
In the DX Channel is available a VBO that works with this feature from Office (Function for Blue Prism - Microsoft Information Protection - Labels - 1.0.0-rc)
At this moment this is community supported.
20046.png

------------------------------
Luis Lopez
Customer Support Engineer English and Spanish
Blue Prism Ltd
------------------------------

ewilson
Staff
Staff
Hello @philippeboutry,

Microsoft hasn't yet included any MIP-specific capabilities directly in the Graph API (recommended API for working with Microsoft 365) or the native Outlook object model. I believe they've added one or two endpoints in the beta release of Graph, but that's not recommended for production use.

Can you tell me more about the headers you're adding?

Cheers,
  ​

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi Eric, 

Thank you for your confirmation about the actual capabilities delivered by Microsoft.

Here what i did in send mail action (do not forget that it didn't work unless you already used the outlook addin in the same outlook session) 
I use some choice and calc before the code stage cause i'm not used to VB.

1) Add the input [Label Name] 
2) Set [Label GUID] depending on the label name (with a default value if [Label Name] is empty)
3) Set [Headers AIP] with this 
"MSIP_Label_" & [Label GUID] & "_Enabled=True; " &
"MSIP_Label_" & [Label GUID] & "_SetDate=" & Now() & "; " &
"MSIP_Label_" & [Label GUID] & "_Method=Privileged; " &
"MSIP_Label_" & [Label GUID] & "_Name=" & [Label Name] & "; " &
"MSIP_Label_" & [Label GUID] & "_SiteId=" & [SiteID GUID]

4) Add two lines at the beginning of the code stage

Dim app = CreateObject("Outlook.Application")
Dim _nameSpace = app.GetNameSpace("MAPI")
Dim mail = app.CreateItem(0)

Dim oPA = mail.PropertyAccessor
oPA.SetProperty ("http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/MSIP_Labels", Headers_AIP)

Best regards




------------------------------
philippe boutry
Blueprism Solution designer
Aubay
Europe/Paris
------------------------------