Recent searches


No recent searches

Gary Kester's Avatar

Gary Kester

Joined May 28, 2021

·

Last activity Jun 04, 2024

Following

0

Followers

0

Total activity

3

Votes

0

Subscription

1

ACTIVITY OVERVIEW

Latest activity by Gary Kester

Gary Kester commented,

Community comment Developer - Zendesk Apps Framework (ZAF)

Thanks Joshua,

I'm always on a lookout for any changes that might simplify how we can work with their tools.

Your conversion to TS gave me an awesome starting point to build on and that's much appreciated.

I use functions over classes in REACT and material UI instead of ZD Garden for theming.

Personal preference I guess.

All the best.

Gary

View comment · Posted Jun 04, 2024 · Gary Kester

0

Followers

0

Votes

0

Comments


Gary Kester created a post,

Post Developer - Zendesk APIs

Hi Team,

 

I've created an app in Zendesk and cant seem to update several custom ticket fields on a specific ticket.

Using ZAfclient - I can easily add a new comment but if I try to update a custom ticket field, the request is sent with a response but no change applied.

 

  let responseDetails: any;


 

  const dataToLoad = {

    "ticket": {

      "comment": {

        "body": `Worker: ${callRecordingInfo.callSID}

                 Recording SID: ${callRecordingInfo.recordingID}

                 Recording URL: ${callRecordingInfo.recordingLink}`,

        "public": false

      },

      "custom_fields": [

        { "id": 9856193510799, "value": callRecordingInfo.callSID},

        { "id": 9882996513935, "value": callRecordingInfo.recordingID},

        { "id": 9864797906191, "value": callRecordingInfo.recordingLink}

      ],

    }

  }

 

  const settings = {

    url: `/api/v2/tickets/${ticketId}`,

    type: 'PUT',

    data: dataToLoad,

    dataType: 'json',

  };

 

  await client.request(settings).then(

    (data: any) => responseDetails = data

  ).catch((error: any) => responseDetails = error)

    ;

  return responseDetails

 

Please help.

 

Gary

 

 

Posted Jun 01, 2024 · Gary Kester

0

Followers

2

Votes

2

Comments