Original Message:
Sent: 09-20-2024 19:15
From: Jan Heinonen
Subject: Control flow based on "email.message.to".
Hi Pat,
It might be hard to match the collection item considering an email object could also contain name and different cases.
Can't try it in my lab right now but thinking the easiest way to check it might be using
Contains(ToString(Email.Message.to), "email@adress.com", true) == true
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
Original Message:
Sent: 09-20-2024 18:16
From: Pat Johnson
Subject: Control flow based on "email.message.to".
This is not working for me what am I missing?
Trying this fails the switch statement.

------------------------------
Pat Johnson
Numerica Credit Union
Original Message:
Sent: 02-16-2024 11:24
From: Jan Heinonen
Subject: Control flow based on "email.message.to".
Hi Tom,
The Email.Message.to is a collection (or array) and can contain several addresses if entered in the To field of an e-mail.
Easiest to check if it contains something if used in a Switch is probably with
FindFirst(Email.Message.to, "emailaddress") >= 0
FindFirst returns the index (0 or greater) if found and -1 if not found.
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
Original Message:
Sent: 02-15-2024 10:53
From: Tom Mullen
Subject: Control flow based on "email.message.to".
I have a flow functioning to send Auto Replies to a sender of a specific mailbox using a Canned Response. I would like to modify the flow so I can use the 1 flow for several different mailboxes where a different canned response is sent based on the email.message.to attribute.
I've tried some different settings using the Decision and Switch functions, but I have not had much luck. I keep getting a warning that there is no implementation that accepts parameters of Email Address Collection and String.
Does anybody know of a way to accomplish what I'm attempting?
#Routing(ACD/IVR)
------------------------------
Tom Mullen
Boehringer Ingelheim GmbH
------------------------------