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

10 Comentarios

  • 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
  • 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
  • 丸岡

    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
  • 手塚

    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
  • Kelsey Davis

    Trying to implement this Zap & got the error:

    "Failed to create a run python in Code by Zapier. Your code had an error! Traceback (most recent call last): File "<string>", line 26, in the_function KeyError: 'view_count' "

    I tried the proposed workaround mentioned here & keep getting the error. Has the View Count code documentation changed? Not sure how to best troubleshoot here. Reached out to Zapier and they're not able to help review the code.

    0
  • Chandra Robrock
    Community Moderator
    Most Helpful - 2021

    Hi Kelsey Davis - Apologies for the delayed response! I missed your previous post until just now. I can confirm that nothing has changed & the code appears to still be working on my end, even when I attempt to create a brand new zap within my Zapier account. Would you mind double checking the values you entered for the ZENDESK_SUBDOMAIN, ZENDESK_VIEW_ID, ZENDESK_EMAIL & ZENDESK_API_TOKEN keys are all correct?

    When I attempted to reproduce this error, I was only able to do so when Zapier was unable to authenticate me based on the values I provided for those keys. For example, a misspelled email for the ZENDESK_EMAIL key, so I suspect you may need to double check the values you provided in Lines 4-7.

    0

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk