How To Create a Slack Notification When a Ticket View Reaches a Specific Threshold

8 Comentarios

  • 丸岡

    Thank you for the wonderful tips!

    I'm stumbling in Step 4.

    I copied zdviewcount.py as it is and entered the necessary information on the 4th to 7th lines, but the following error appears.

    Is there anything else I need to fill out?

     

    ---

    The run python could not be sent to Code by Zapier.

    Your code had an error!

    Traceback (most recent call last):

    File "<string>", line 26, in the_function

    KeyError:'view_count'

    0
  • Chandra Robrock
    Community Moderator
    Most Helpful - 2021

    @... Of course! I double checked the code that I actually have deployed in Zapier and I can confirm that the code provided from my GitHub is correct.

    That being said, I was able to intermittently reproduce this issue in Zapier when I tried testing this out in a new Zap which is very odd.

    I appear to be able to get around this error by clicking back into the Run Python > Set Up Action step, clicking on the ‘Refresh fields’ button once more, and then click on 'Continue' to retest it. Mind giving that a shot?

    I'm thinking Zapier might be falsely throwing an error after the code is initially copied & pasted into the zap, but appears to work successfully after that. Let me know how it goes!

    0
  • 丸岡

    Chandra Thanks for let me know!

    When I tried the method I was taught again, it was executed successfully!

    0
  • Christopher Wooten

    I am getting an error on this as well. The code does not go down to line 25.

    Only filled out the fields as told.

    Traceback (most recent call last): File "<string>", line 25, in the_function File "/var/task/requests/api.py", line 75, in get return request('get', url, params=params, **kwargs) File "/var/task/requests/api

    0
  • 手塚

    Hello Chandra,

    This post really helps. Cheers!

     

    However, when I try to enable the zap including the python code, it turns ON once, but it turns back OFF when I reload the page.

     

     

    Testing each step doesn't occur any errors, and python seems to be working OK, but it seems like the python-step is causing the problem since I tested deleting each step one by one.

     

    Should I contact your support team for this, or is there any known solution?

     

    Thanks in adance!

     

    0
  • Chandra Robrock
    Community Moderator
    Most Helpful - 2021

    Hey 手塚 - To confirm, are you getting any errors when testing the Python step within Zapier?

    If you aren't seeing any errors when testing this step, I'd recommend reaching out to Zapier's team directly for further assistance as you may be running into a bug with their software.

    Keep me posted if I can be of any further assistance!

    1
  • 手塚

    Thank you very much for your suggestion Chandra!

    I've contacted Zapier team and they told me to use the "Latest" schedule trigger instead, and now the Zap is working as expected!

    I'll leave the screenshot for other people in future cases.

     

     

    0
  • Chandra Robrock
    Community Moderator
    Most Helpful - 2021

    Very interesting! Thanks so much for the update. I was going to update the original post but it looks like I'm not seeing both versions of the Schedule by Zapier account within my account.

    I wonder if they are slowly rolling this new feature out. I'll try to keep an eye on it in case these instructions need update in the near future. Appreciate it!

    1

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk