Recent searches
No recent searches
ZAFClient doesn't update the UI
Posted Feb 13, 2025
We have a custom app that suddenly stopped working with no changes in our end. The app is updating the tags on the ticket by doing:
const client = ZAFClient.init()
client.invoke("ticket.tags.add", “newTag”)
the code runs fine and returns no error:
{
errors: {}
ticket.tags.add: ['newTag']
}
but the UI is not updated anymore, which leads to the ticket having no tag when submitted.
We tried using .set()
instead of invoke but the same thing happens. Same thing if we try with remove instead of add, no error, but no impact on the UI
Running client.get("ticket.tags")
returns the added tag even tho the UI doesn't show it.
In contrast, running client.invoke("ticket.comment.appendHtml", “html”)
works as intended
Did something change? is this a possible configuration issue?
Thanks
1
3
3 comments
Erica Girges
In case you didn't see me response in the other post, this issue has been resolved on our end. Please be sure to use: https://static.zdassets.com/zendesk_app_framework_sdk/2/zaf_sdk.min.js to ensure you have the latest version.
0
Alan StaffMember
Hi Erica,
The App documentation says to use
<script src="https://static.zdassets.com/zendesk_app_framework_sdk/2.0/zaf_sdk.min.js"></script>
Note it says the version is 2.0 not just 2. Are you saying we should change this. If so, the documentation needs to be corrected.
Thanks
0
Erica Girges
So if you're already in development and a minor update made on our end that is the only instance we do recommend using the other script. Apologies for any confusion, we do have this notated in our developer doc under the Framework Versions section which can be found here.
0