Set several recipients through a workflow data

Hello,

I want to set several recipients in a email notification activity. I try to concatenate these emails in a workflow date through a function evaluator activity, in the same way as the post here.

email1@domain;email2@domain

But the workflow encounter an error during the run.

System: System.FormatException: The specified string is not in the form required for an e-mail address.
   at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)
   at System.Net.Mail.MailAddressCollection.ParseValue(String addresses)
   at Microsoft.ResourceManagement.Mail.GenericMessage..ctor(String to, String subject, String body)
   at Microsoft.ResourceManagement.Workflow.Hosting.SendMailWorkItemProcessor.SendMailMessage(MessageContent messageContent)
   at Microsoft.ResourceManagement.Workflow.Hosting.SendMailWorkItemProcessor.ProcessWorkItem(WorkItem workItem)

Do you how I can do that?

Regards,

Serge

January 24th, 2014 6:49am

On the other thread the wrong item got marked as an answer. Frank Dewes explained it properly: "The way the email notification activity is setup is to take a person (or group) reference and send to it's email address."

So what you need to do is get a reference to the person objects rather than the email addresses or create a custom workflow activity 

 

Free Windows Admin Tool Kit Click here and download it now
January 28th, 2014 7:12pm

Hello,

My error was to use ";" instead of ",".

@David: I can't manage to use direct references on person when I want to notify recipients specified in a multivalued attribute. This is why I use a custom activity to calculate an email adresses list and I send it to an email notification activity throught a workflow data. In this way I don't have to use custom email notification activity.

If you have a better way to work with multivalued references attribute, I will be really interested :)

Regards,

Serge

February 4th, 2014 5:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics