Exception in Email event while using xml fields in TO field

  • 25 November 2008
  • 2 replies
  • 0 views

Badge +4

Hi,


I am storing users in an xml field in format domainusername.


I specify the xml field in the To field of a mail event.


K2 does not get the email address for the users and throws exception saying the specified string is not in format of email address.


It specifically needs email addresses to be specified in the mail events.


This is an overhead to be done.


I think K2 should internally do an AD query and fetch the email address for the specified user if it is not in format of email address.


Regards,


Ritesh


2 replies

Badge +4

Also I am setting destination users dynamically in the code behind for destination rule.


In the mail notification for the task, same exception is thrown.

Badge +11

I use a SmartObject connected to the Active Directory 2 (807) service to resolve users to email addresses for the mail event.  I usually have a few utility SmartObjects like this that I can use in many different workflows.  It will be a little bit trickier with a repeating group, but I'm pretty sure it should be possible to do it with no code.


David

Reply