Quickly mark lots of tickets as spam. (No Automations required)

2 Comments

  • Brett - Community Manager
    Comment actions Permalink

    Thanks for sharing this workaround Stewart :)

    Appreciate you taking the time to write this up!

    0
  • Walter
    Comment actions Permalink

    Thanks for the help Stewart, this was a lifesaver.

    For those of you who are not developers, like me, this is a very handy work around if you use it right.  Let me help break it down and provide additional notes for newbies like me.

    Copy and paste the entire code above into a notepad or your preferred editor.  In my case, the spam was coming from China so the search parameters were different. I edited the following section:

      if (value.subject.indexOf("д")>=0
      ||
      value.subject.indexOf("л")>=0
      ||
      value.description.indexOf("д")>=0
      ||
      value.description.indexOf("л")>=0)

     

    Instead of searching for "л" & "д", I added chinese characters.  See my version:

    if (value.subject.indexOf("请")>=0
    ||
    value.subject.indexOf("作")>=0
    ||
    value.description.indexOf("请")>=0
    ||
    value.description.indexOf("作")>=0)

     

    In any case, whether you need to update the search parameters or not, open your browser to your zendesk agent portal.  I use Google Chrome on a PC so for me I just hit CTRL+Shift+J on the keyboard.  A window will popout. Paste the code Stewart provided or your own edited version and hit Enter.  I had to repeat these steps several times before it marked them all.  VERY IMPORTANT - Like Stewart mentions above, you have to enable Password Access in your API settings first!

    1

Please sign in to leave a comment.

Powered by Zendesk