Recent searches


No recent searches

ZAFClient can't update fields



Posted Feb 12, 2025

I'm buidling a server-side custom app, using the ZAFClient.  I am able to fetch data off the main page with JS such as “client.get('ticket.requester.email')”. This is working fine.

 

However, I want to update a custom attribute in the main page, but it is not working.  I have tried:

 

client.set('ticket.customField:custom_field_29842705376151', 'Yes')

and also

const data = {

ticket: { 29842705376151: value }};

client.request({url: url, type: 'PUT', data: data})

(I've also tried turning the key into a string, e.g. ‘29842705376151’)

 

In both cases the call succeeds, the response object contains no errors, but the data on the main page is not updated.

 

What am I doing wrong?

 


2

1

1 comment

image avatar

Erica Girges

Zendesk Developer Advocacy

Hi Ken & Nicolas, 
 
It looks like there was an issue on our end causing this to happen. However, it has since been fixed. You can use: https://static.zdassets.com/zendesk_app_framework_sdk/2/zaf_sdk.min.js to ensure that you have the latest release. 

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post