Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Routing email by attachment name

    Posted 07-14-2017 23:03

    Good day.

     

    Please support with the following email flow. I am creating a flow that allows me to redirect an email to a queue, provided the attachment name has the name "test.txt".

     

    In the flow I have inserted the following conditional expression:

    ToString (Email.Message.attachments [0]) == "test.txt"

    14-07-2017 18-00-51

    And although I send an attachment with that name, I do not redirect it to the acd queue I require. It goes by the false value of the condition.

     

    Please support them.

    Thank you.

    Julio Segil



  • 2.  RE: Routing email by attachment name

    GENESYS
    Posted 07-17-2017 20:55

    You can achieve this by changing your expression to

     

    Email.Message.attachments[0].Name == "test.txt"

     

    instead. The ToString on an EmailAttachment (like most other complex objects) will return the Id of the attachment, not the friendly name.



  • 3.  RE: Routing email by attachment name

    GENESYS
    Posted 07-17-2017 20:59

    Also keep in mind that the "==" operator will do a case-sensitive comparison. If you're not concerned about the case you can also set your expression to something like

     

    AreEqual(true, Email.Message.attachments[0].Name, "test.txt")



  • 4.  RE: Routing email by attachment name

    Posted 07-31-2017 20:23

    Thank you for your answers. If I succeeded in doing what was expected:

    ToString(Email.Message.attachments[0].Name) == "test.txt"

     



Need Help finding something?

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