최근 검색


최근 검색 없음

Lachlan Kidson's Avatar

Lachlan Kidson

가입한 날짜: 2024년 6월 04일

·

마지막 활동: 2024년 7월 01일

팔로잉

0

팔로워

0

총 활동 수

8

투표 수

2

가입 플랜

1

활동 개요

님의 최근 활동 Lachlan Kidson

Lachlan Kidson님이 에 댓글을 입력함

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

Hey Erica, no worries at all!

 

A demo would be appreciated if you have the time, thanks.

 

 

댓글 보기 · 2024년 7월 01일에 게시됨 · Lachlan Kidson

0

팔로워

0

투표 수

0

댓글


Lachlan Kidson님이 에 댓글을 입력함

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

Thanks Erica, do you know if there are any examples of this anywhere? Our attempts resulted in getting a 500 error back from the server. It's not too clear how to express that the payload is multipart/form-data when using request()

댓글 보기 · 2024년 6월 28일에 게시됨 · Lachlan Kidson

0

팔로워

0

투표 수

0

댓글


Lachlan Kidson님이 에 댓글을 입력함

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

Having looked at this a bit further it seems like the expected approach is to upload an attachment via 

https://developer.zendesk.com/api-reference/ticketing/side_conversation/side_conversation_attachment/, retrieve the UUID from the response - and then use this in the payload for creating the side conversation.

 

Is it possible to perform the upload via ZAFClient's request method?

댓글 보기 · 2024년 6월 20일에 게시됨 · Lachlan Kidson

0

팔로워

0

투표 수

0

댓글


Lachlan Kidson님이 에 댓글을 입력함

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

On a similar note, it doesn't look like the CC or BCC fields are available via this API either, whilst they are available via the UI.

댓글 보기 · 2024년 6월 11일에 게시됨 · Lachlan Kidson

0

팔로워

0

투표 수

0

댓글


Lachlan Kidson님이 에 게시물을 만듦

게시물 Developer - Zendesk Apps Framework (ZAF)

I am part of a team developing an application installed to the ticket_sidebar location. As part of this we want to be able to programatically create side conversations for our users.

 

We've had success doing by calling the side conversations API via ZAFClient:

https://developer.zendesk.com/api-reference/ticketing/side_conversation/side_conversation/#create-side-conversation

 

Our code is essentially this, which works: 

const { 'ticket.id': id } = (await client.get(
  'ticket.id',
));

const message = {
  "message": {
    "subject": "My printer is on fire!",
    "body": "The smoke is very colorful.",
    "to": [
      { "email": "someone@example.com" } 
    ],
  }
};

await client.request({
  contentType: 'application/json',
  url: `/api/v2/tickets/${id}/side_conversations`,
  type: 'POST',
  data: JSON.stringify(message),
  dataType: 'json',
})

We would also like the ability to add attachments. This is where we run into issues.

The example code from the documentation would suggest this is possible:

{
  "message": {
    "subject": "My printer is on fire!",
    "body": "The smoke is very colorful.",
    "to": [
      { "email": "someone@example.com" }
    ],
    "attachment_ids": ["0123456789"]
  },

However the attachment_ids field is not documented on the associated Message object, and in testing always results in an error that the attachment was not found.

https://developer.zendesk.com/api-reference/ticketing/side_conversation/side_conversation_event/#messages

 

Our expectation was that we could get a list of attachments by first making a request to /api/v2/tickets/${id}/comments.json , then use the attachment IDs from that as part of the message payload. (We've also confirmed work with the api/v2/attachments/ endpoint). Inspecting the GraphQL network requests that are made when creating a side conversation via the UI also results in the same attachment IDs being used - so it is unclear why these attachments aren't being found.

 

TL;DR - is the attachment_ids field actually supported in the side conversations API, and if so what do we need to do to get this to work?

2024년 6월 10일에 게시됨 · Lachlan Kidson

1

팔로워

5

투표 수

8

댓글