Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Routing emails based on attachment size (contentLength?)

    Posted 11-12-2021 14:05
    No replies, thread closed.
    I need the ability to route an email to a queue/skill based on the size of the attachment. 

    Some of our emails contain .jpg, .pdf, .doc files that are scans or screencaps from customers. Some email signatures contain company logos that are attached as .jpg files but of diminutive size (<20kb). The jpg scans are universally larger that 500kb. The easiest way to perform the check is based would be based on the .jpg size. 

    Preferably, I could use this with other functions combined with the 'or' operator:

    Contains(Email.Message.attachments[0].name, ".pdf") or
    Contains(Email.Message.attachments[0].name, ".docx") or
    Contains(Email.Message.attachments[0].name, ".doc") or
    Contains(Email.Message.attachments[0].contentLength <whatever the syntax is for evaluating the size>)

    And so I'm clear, there are a lot of email routing examples used in the forums using "Email.Message.attachments[0].whatever" and referencing [0] as the "first attachment". If there are more than one atachments, are subsequent Functions for each attachment required? (e.g. Email.Message.attachments[1]. Email.Message.attachments[2]. etc)

    Thanks!
    #ArchitectureandDesign
    #Routing(ACD/IVR)

    ------------------------------
    Jacob Anderson
    EnerBank USA
    ------------------------------


  • 2.  RE: Routing emails based on attachment size (contentLength?)

    Posted 11-16-2021 23:28
    No replies, thread closed.
    You are correct on the Email.Message.Attachments is an array or collection, so you can access each one with the [x] to signify the position in the collection.  What you propose should work fine or you can use Find or FindFirst in the list of attachments to get the position in the collection and then act on that integer.  Also, you can Count your list and see how many elements there are and loop through them to find the largest.

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Routing emails based on attachment size (contentLength?)

    Posted 09-11-2023 06:16
    No replies, thread closed.

    Hi guys!!

    I'me very interested in thi feature...how could we get the size of attachment?

    THanks in advance.



    ------------------------------
    David Fradejas Tomás
    Sabio Ibérica, S.A.
    ------------------------------



  • 4.  RE: Routing emails based on attachment size (contentLength?)

    Posted 09-12-2023 13:56
    No replies, thread closed.

    This AppFoundry App would allow doing advanced email routing in Genesys, including by attachment info (size, type, ...):

    https://appfoundry.genesys.com/filter/genesyscloud/listing/59c44a27-fb86-4806-8640-18a99c7f544f



    ------------------------------
    Maksim Gill
    Eccentex (Advanced Case and Email Management Platform for Genesys)
    https://www.eccentex.com/genesys
    ------------------------------



  • 5.  RE: Routing emails based on attachment size (contentLength?)

    Posted 09-14-2023 08:21
    No replies, thread closed.

    Hi @Jacob Anderson , I found the solution using Email.Message.attachments[Task.indexAttachment].contentLength, where indexAttachment is my looping index.

    I have same issu as you mentioned before (Some email signatures contain company logos that are attached). Could you explain us a little bit what solution you implement? taking into account not only tiny .jpg and .png could be consider a "false possitive" attachments...also some other extensions like jpeg, svg etc...THANKS IN ADVANCE



    ------------------------------
    David Fradejas Tomás
    Sabio Ibérica, S.A.
    ------------------------------