K2 5.3 Workflow: System.string[] returned instead of String

  • 5 June 2020
  • 1 reply
  • 19 views

I am using Exchange Mailbox Service Broker to read emails from Shared Mailbox

https://community.k2.com/t5/K2-blackpearl/Exchange-Mailbox-Service-Broker/bc-p/116193

 

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?

 

Thanks!


1 reply

Badge +8

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.  

Reply