최근 검색


최근 검색 없음

Bryan Flynn's Avatar

Bryan Flynn

가입한 날짜: 2021년 4월 15일

·

마지막 활동: 2022년 2월 01일

팔로잉

0

팔로워

0

총 활동 수

161

투표 수

24

플랜 수

85

활동 개요

님의 최근 활동 Bryan Flynn

Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Hi @...,

Please give the API call that you are making at any returned HTTP status codes (removing any confidential information of course).

Are you using the example cURL code in the reference documentation for POST /api/v2/uploads.json?

Also check out another community post where the tool Postman was used for a file upload: Unable to upload image file via /api/v2/uploads.json through postman

Keep in mind that uploading and attaching to a ticket is a two step process described here: Attaching files to tickets via API.

댓글 보기 · 2020년 9월 22일에 게시됨 · Bryan Flynn

0

팔로워

0

투표 수

0

댓글


Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Hi @.... Looks like this question was also cross-posted in the developer community. I posted an answer there — please see https://develop.zendesk.com/hc/en-us/community/posts/360050023554/comments/360012872554. If you have follow-up questions, I can answer them there. Thanks!

댓글 보기 · 2020년 9월 18일에 게시됨 · Bryan Flynn

0

팔로워

1

투표

0

댓글


Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Hi Brandon. It is a bit confusing. There's the ticket field's meta information (the example you gave), which is the "schema" of the field, no matter the ticket. Then there's the custom field's actual value stored for a given ticket.

To get the a custom field's value for the currently displayed ticket use:

client.get('ticket.customField:custom_field_123456789')

Hope this helps!

댓글 보기 · 2020년 6월 24일에 게시됨 · Bryan Flynn

0

팔로워

0

투표 수

0

댓글


Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Discussion - Tips and best practices from the community

Hi @... -- I suggest submitting a ticket, so your specific account can be examined more closely. 

Know that this particular workflow is not officially supported. See Can I use a trigger and a target to update tickets? for more details.

댓글 보기 · 2020년 1월 23일에 게시됨 · Bryan Flynn

0

팔로워

0

투표 수

0

댓글


Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

It does seem odd at first why all settings are not treated the same way. The reason is because secure settings, due to their nature, are never meant to be seen on the client side, so they have to be treated differently. The only point that they are retrieved and inserted into a client.request call is on the backend proxy server that Zendesk hosts.

This enables an administrator to confidently enter, say, a remote server's API token and not have to worry about anyone on the client side having access to that value. Hope this clarifies things!

댓글 보기 · 2019년 11월 14일에 게시됨 · Bryan Flynn

0

팔로워

0

투표 수

0

댓글


Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

댓글 보기 · 2019년 11월 05일에 게시됨 · Bryan Flynn

0

팔로워

0

투표 수

0

댓글


Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

That sounds reasonable Calum. So I'll just point out again then, an end-user account can generate an OAuth token and use it against the /api/v2/requests.json API. It sounded like this wasn't working for you when I read the original post. If that's still the case, then more details will probably be needed via a private ticket. Let me know and I can create one for you.

댓글 보기 · 2019년 7월 09일에 게시됨 · Bryan Flynn

0

팔로워

0

투표 수

0

댓글


Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Hi Calum -- just to clarify, a new request/ticket created by an end user using an OAuth/Bearer token should work.

To simplify the above and using the cURL command line tool, the request would look something like:

curl -v -H "Content-Type: application/json" -H "Authorization: Bearer d482cccebdd482cccebdd482cccebdd482cccebdd482cccebdd482cccebd" https://yourownsubdomain.zendesk.com/api/v2/requests.json -X POST -d '{"request":{"subject":"Test Ticket Subject","comment":{"body":"Test Ticket Body"}}}'

You can quickly generate an OAuth token for the above example using your own account and end-user by:

1. In an incognito browser window, go to https://developer.zendesk.com/requests/new

2. Enter your Zendesk instance's subodomain

3. Click Authorize (then select 'Allow' in the popup window that's displayed if needed)

4. Then copy the entire returned OAuth token

I would not recommend using the "API Token"/Basic authorization approach from a client-side solution -- it exposes your account to possible abuse. By switching out the email address before the "/token" portion, you can impersonate other users. You should only use an API token within the context of a secure server-side solution (one that will not expose the API token to any client agents).

댓글 보기 · 2019년 7월 08일에 게시됨 · Bryan Flynn

0

팔로워

0

투표 수

0

댓글


Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Hi Felipe. GET /api/v2/ticket_fields.json will return all ticket fields in your instance regardless of what Ticket Form they're used on. As for searching, the link you gave is the best reference for what is searchable.

If you're looking for the ability to search a specific custom field, the 'fieldvalue:' option is the closest there is. It searches all custom fields, however -- you can't currently search only a specific custom field. This is a very popular feature request that has yet to be implemented. Hope this helps move you forward.

PS -- Also thanks McCabe as well for the above answer!

댓글 보기 · 2019년 5월 01일에 게시됨 · Bryan Flynn

0

팔로워

0

투표 수

0

댓글


Bryan Flynn님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Here's the syntax for getting a custom field's value:

client.get('ticket.customField:custom_field_12345678')

...where the '12345678' value is *your* custom field's unique ID, prefixed by the literal string "ticket.customField:custom_field_"

This is documented here:

https://developer.zendesk.com/apps/docs/apps-v2/support_api#ticket.customfieldfieldname

One way of getting your custom field's ID value in Zendesk is by going to to Admin > Manage/Ticket Fields > edit -- it will be listed at the top of the Ticket Field Edit page.

 

댓글 보기 · 2017년 6월 27일에 게시됨 · Bryan Flynn

0

팔로워

0

투표 수

0

댓글