I am using Exchange Mailbox Service Broker to read emails from Shared Mailbox
While this broker works fine for a UI View, but when same data is fetched from Workflow, apart from ItemId, rest of the fields are returned as System.string.
Please see attached document for more details.
What is causing this behaviour?
I tried this every way you can possibly imagine. It doesn't work. My understanding is that it's because there is no primary key when you're reading the list of emails from the service broker...at least that's how someone explained it to me.
I gave up after a while.
You can read the emails individually, though. So, you can loop through the list of emails, reading one at a time rather than putting the whole list into a reference.