Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  how to use expresions

    Posted 02-10-2021 06:33
    No replies, thread closed.

    Hi all,

    i build a flow for routing e-mails at the moment  i am testing this, i have de default path (all mails)
    and case 1: 


    Now this is working when someone sent a email with wachtwoord in the subject, but if the e-mail contains Wachtwoord with a capital W (Wachtwoord or WACHTWOORD)
    it does not work.

    Any idea how i can fix it so it detects all versions of the word wachtwoord?


    #ArchitectureandDesign

    ------------------------------
    Donny Willems
    KEMBIT B.V.
    ------------------------------


  • 2.  RE: how to use expresions

    Posted 02-11-2021 02:44
    No replies, thread closed.
    You can use Lower and convert your subject and body to all lowercase letters before you match it.


    ------------------------------
    Samuel Kling
    Etraveli Group AB
    ------------------------------



  • 3.  RE: how to use expresions

    Posted 02-11-2021 02:52
    No replies, thread closed.
    Hi Samuel,

    Do you have any examples of this? Never worked with expresions before.

    ------------------------------
    Donny Willems
    KEMBIT B.V.
    ------------------------------



  • 4.  RE: how to use expresions

    Posted 02-11-2021 03:18
    No replies, thread closed.
    Hi Donny,

    Yes, I would do it like this. 
    Change your switch from Email builder (I actually didn't know this existed) to Expression

    Contains(Lower(Append(Email.Message.subject, Email.Message.body)), "wachtwoord")

    Contains checks if a string contains a substring.
    Lower will convert a string to all lower case letters.
    Append will merge 2 strings together.

    ------------------------------
    Samuel Kling
    Etraveli Group AB
    ------------------------------