cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Add a Category to Email after retrieving attachment using Outlook Connector

ccontzen
Deputy Chef II
Deputy Chef II

Dear all,

is there a way to set a category to an email using the outlook connector after downloading attached pdf files?

its basically the same as described here:

Stackoverflow: Add Outlook Category to mail via MS Graph

Thank you in advance

Regards,

Christian

 

2 ACCEPTED SOLUTIONS

kelian-mos
Workato employee
Workato employee

Hi @ccontzen,

This is not supported by default, but through the custom action in the Outlook Connector you can achieve this:
Screenshot 2023-05-11 at 11.30.56.png

 

The Outlook Connector is using the MS Graph API as listed here: 
https://learn.microsoft.com/en-us/graph/api/message-update?view=graph-rest-1.0&tabs=http

In this custom action I'm using the following parameters:
Method: Patch
Pathhttps://graph.microsoft.com/v1.0/me/messages/{id}
Request: {"categories":["name"]}

Let me know if this works and is what you meant.

View solution in original post

3 REPLIES 3

kelian-mos
Workato employee
Workato employee

Hi @ccontzen,

This is not supported by default, but through the custom action in the Outlook Connector you can achieve this:
Screenshot 2023-05-11 at 11.30.56.png

 

The Outlook Connector is using the MS Graph API as listed here: 
https://learn.microsoft.com/en-us/graph/api/message-update?view=graph-rest-1.0&tabs=http

In this custom action I'm using the following parameters:
Method: Patch
Pathhttps://graph.microsoft.com/v1.0/me/messages/{id}
Request: {"categories":["name"]}

Let me know if this works and is what you meant.

ccontzen
Deputy Chef II
Deputy Chef II

Thank you for your support - it looks like it is not possible to shared mail accounts.

We are downloading attachments from a shared account and want to set a category to processed  mails. Looks like its not possible...


You can't do it using delegate permissions because there is no MailboxSetting.ReadWrite.Shared permission so that endpoint can only be used to access the current users Mailbox setting when using delegate permission. You an use Application Permissions and the Client Credential flow https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow if you need to limit the scope of your application to a number of Mailboxes you can do that as well https://learn.microsoft.com/en-us/graph/auth-limit-mailbox-access

 

microsoft graph api - MSGraph API: How to get outlook categories of other user as described in the A...

 

ccontzen
Deputy Chef II
Deputy Chef II

it looks like it works with a small change

="https://graph.microsoft.com/v1.0/users/USERID/messages/MESSAGEID