Outlook send mail from shared mailbox reprise


I’ve seen a number of threads that touch on this, but nothing that coherently answers the question of how to resolve the problem.

I am very happily getting and sending mail under my own identity/account, leaving the ‘Account’ property of both Send and Get blank.

We have a shared mailbox, ‘Expenses’. Our IT guys set it up a few days ago, and it appeared spontaneously in the left panel of my Outlook. In Outlook I am able to see the contents of the Inbox, and am able to send from the box by simply substituting the box address, expenses@ourcompany.com, for my own in the From field of the outgoing message. Any message sent from this address in this way appears in the shared box’s Sent folder. Cool.

Back to UiPath, I put a ‘Get Outlook Mail Messages’ activity in my workflow. I specify Input->Account == “Expenses” and Input->MailFolder == “inbox”, and woo hoo! I am rewarded with the contents of the Expenses mailbox inbox.

I add a “Send Outlook Mail Message”. I address the message to my own email (dkurtz@ourcompany.com) and, based on what works in ‘Get…’ I specify Input->Account == “Expenses”.

For my troubles I am rewarded with an error:
Main has thrown an exception

 Source: Send Outlook Mail Message
 Message: Account not found: Expenses
 Exception Type: ArgumentException
 System.ArgumentException: Account not found: Expenses
    at UiPath.Mail.Activities.SendMailActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
    at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
    at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

I have tried variations on the mailbox name: “Expenses”, “expenses”; specify the mailbox’s address "expenses@ourcompany.com", with and without the domain “ourcompany\Expenses”, nothing. Zip, nada. Same error each time.

I’ve also tried “Send Exchange Mail Message” and haven’t gotten that to work at all. Throws a “Source: Newtonsoft.json; Exception Type: JsonSerializationException” every time.

So, back to the Outlook activities. Recap: I can get mail from the shared box by specifying the name of the box in the “Account” property. I can’t send mail from the box by specifying the name of the box in the “Account” property.

How do we get around this?




Unfortunately I can not help solving this issue but I want to push this thread because I face the same problem!



Wow, it’s been so long since I last looked at this that I don’t remember exactly where we were when last I did. I think we may have resolved the issue by replacing the shared mailbox with an account, with it’s own ID and credentials. I should be able to look back at this next week, will update.