Mark an email Unread

Hello, I am trying to find an email, reply to it, and then mark that original email as unread. I am able to find the email and reply to it using the “Microsoft office 365 scope” with office 365 - classic outlook activities. I would like to use the newer activities included in the UiPath.MicrosoftOffice365.Activtites or UiPath.Mail.Activities packages but I am unable to figure out how to do this with a dynamic mail account or integration service connection. I have several environments that this process needs to work in and all require the use of a different email account. Also these accounts are subject to change over time so they need to be supplied as a variable. When attempting to use an integration service connection I am unable to select any connections in a folder outside my personal workspace with the UiPath.MicrosoftOffice365.Activtites.Mail activities. When I use the “Use outlook 365” scope with newer UiPath.mail activities I am unable to dynamically specify the email address or shared mailbox to use. Further I get the following unhelpful error: Mark Outlook Mail As Read/Unread: Sorry, something went wrong. You may want to try again.

Can anyone please explain how to use the mail activities and use outlook 365 scope? Additionally, any insight into how to properly use integration connections would be greatly appreciated.

@Jacob_Orkis1

  1. Integration services use a specific account as they are setup with an account in orchestrator…and when you publish the project and create a process …while creating you will get an option to choose account again…so you can choose the account there…it is not that the account selected in studio is final or cannot be changed…so you can change from the process menu

  2. For mail activities if you are using outlook also in account you can give the shared account value and ideally it would be conencted

Cheers

1 Like

I have updated the process to use the default connection but get the following error: Get Newest Email: User does not have Connections.View permissions on the connection folder

Any suggestions on how to fix this issue or how to properly configure these connections to run from orchestrator? the process runs as expected locally

@Jacob_Orkis1

Please dont use default…when you create the process from the dropdown select any account…or else it tries to use the running robot account…looks like that bot does not have the permissions or a connection in personal space for that specific bot…please create a connection with any account you know and select that

Also if you are on latest studio there is a bug running on that you are able to create connection only in default for some reason…ideally we should be able to create in any folder and specifically shared to share connection across

Cheers

1 Like