This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.
Workflow Error on mail event after deployment on new update with error
System.Object' cannot be converted to type 'System.String
Workflow goes into error state on mail event.
This is a known issue and will be fixed in an upcoming update for Appit.
Workaround: Use the Name property instead, this will return the K2 FQN, meaning it will look like this AAD:User@someplace.com. Then use the inline functions to replace the AAD: with an empty string to strip it down to an email address.