Hello. That does not work because the activity requires type int64. My variable ZDticketID is a string, so I have to convert to int64.
The ID which you have used in the other activity is a string is that correct ?
Correct. Here is what it looks like when I scroll up a bit. “strCorrLink” is a URL from a cell in a google sheet. I get the ZDticketID when I do a “split” to grab the ticket ID from the end of the URL. This gives me the string I need for the “Get Ticket’s Metrics” activity.
Yes, that is correct. The string contains numbers.
Hey @Josh_James
Now then could you please convert that string to integer & then pass it to the activity.
CInt(ZDticketID)
Kindly try this and see if that activity retrieves ticket details.
Thanks
#nK
No, just the Ticket ID.
Okay could you please hardcode a ticket ID and check once ?
And what is the version of activities you are using ?
Activities version is 4.0.2. How do I hardcode an int64 value? Sorry, I’m not very experienced with this.
No just take a Ticket ID from the Zendesk ticket URL and pass it directly as like 123456 instead of variable!
Can you also remove the ticket out object you are using and try with a different ticket pls.
Unfortunately I don’t have Zendesk setup to test from my side
I created a test sequence so I wouldn’t have to debug the entire project for each test. I still got the same error message, however…
Now I hope you have tried different ticket ID ?
I did, yes. Something I found interesting was, I tried another activity called “List recent tickets” where you don’t need a ticket ID, just to see if it would work. I get the same failure message, even when the output is blank. That makes me wonder if my connection to ZD is bad? That wouldn’t make sense though, as the Metrics activity works every time. I am also an administrator on our Zendesk account. Running out of ideas. Starting to think these Zendesk activities do not work at all.
Another thought I had… The metrics activity was asking for the “unique ID” and the other int64 ones were asking for the “ID” (don’t understand the difference). There are indeed two separate types of “IDs” in the metrics output. Unfortunately, the non-unique int64 ID value did not work either. Thought I had it for a second…
I might be getting somewhere now… If I do a “List Records” activity with “Ticket Comments” as my object, I can at least output all the comments. The comments contain whether or not an attachment is included, along with the attachment ID. The failure is happening when it finds the attachment to be a JPG file. Guessing only PDFs are recognized? Now I just need to figure out an assign activity with the correct expression to get the Attachment ID. Getting closer!