Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Control flow based on "email.message.to".

    Posted 02-15-2024 10:54

    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
    ------------------------------


  • 2.  RE: Control flow based on "email.message.to".
    Best Answer

    Posted 02-16-2024 11:24

    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
    ------------------------------



  • 3.  RE: Control flow based on "email.message.to".

    Posted 09-20-2024 18:17

    This is not working for me what am I missing?

    Trying this fails the switch statement. 



    ------------------------------
    Pat Johnson
    Numerica Credit Union
    ------------------------------



  • 4.  RE: Control flow based on "email.message.to".

    Posted 09-20-2024 19:15

    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
    ------------------------------



  • 5.  RE: Control flow based on "email.message.to".

    Posted 09-22-2024 11:42

    Jan, I can't thank you enough for this working as expected.

    Thanks again!



    ------------------------------
    Pat Johnson
    Numerica Credit Union
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources