Home  >  Q&A  >  body text

Migrate Zendesk from Web Widget (Classic) to Messaging Web Widget SDK

The site is using the new Zendesk SDK and I need to update the code, but the documentation isn't much help. I open the widget like this:

zE('webWidget', 'reset');
zE('webWidget', 'open');

This is obviously no longer correct

In the console:

Method webWidget.reset does not exist.

Note from Zendesk: API methods associated with the Web Widget (classic) are still executed on the page. The site now uses the new Web SDK (Messaging Experience) and no longer supports these APIs. If you don't plan to use the Web Widget (classic), we recommend that you remove this code from your site. Although this is not recommended, keeping them will not cause any problems. '

Any ideas?

P粉860897943P粉860897943215 days ago447

reply all(1)I'll reply

  • P粉940538947

    P粉9405389472024-02-22 09:09:56

    solved So, in fact, zE('messenger', 'open') does work, and that's the solution to go for.
    However, zE('messenger', 'reset') is not supported, which is the problem I ran into while testing.
    I used zE('messenger', 'close') instead.

    reply
    0
  • Cancelreply