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

3 Kommentare

  • saki

    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

    saki 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
  • saki

    Chandra Thanks for let me know!

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

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk