cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Categorizing Outlook emails using outlook VBO

Thabang
Level 3

Hi,

is it possible to categorize emails on outlook using the Blue Prism Ms Outlook Email VBO? if so, would you guys assist with the code to allow thi to happen?

What i'm hoping to achieve.

1. Use the Get Received Items action to retrieve all unread emails in my inbox.
2. Use the the EntryID and the catergory colory to categorize an email. ( I think i would have to pass the EntryID as well as the color code that i would like to mark the email with)

The 1st image shows the category from Outlook and the 2nd one shows the existing Ms Outlook Email VBO that i have, and i wanted to add an action (Categorize) and use that to be able to categorize emails on outlook

I'm new to Blue prism and this is my first time posting on this portal, apologies if i'm not making any sense




------------------------------
Thabang
------------------------------
1 REPLY 1

VijayGurav1
Level 2
Hi,
There is no default action for setting email category using an Ms Outlook VBO. You can crate a custom object using c# or vb.net language in code stage.
Fore Reference have a look on below code.

Dim app = CreateObject("Outlook.Application")
Dim _nameSpace = app.GetNameSpace("MAPI")
Dim item = _nameSpace.GetItemFromID(Entry_ID)
item.Categories = Email_Categories
item.Save


18997.png


------------------------------
Vijay Gurav
Sr. Project Engg
Wipro Digital
Asia/Kolkata
------------------------------