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

4 Comments

  • 丸岡

    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

Please sign in to leave a comment.

Powered by Zendesk