Skip to content

zendesk/metadata_call_demo_zaf_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test getting and setting Zendesk Apps framework metadata

This app demonstrates usage of the client.metadata() method to retrieve installation metadata such as app ID and installation ID. The app also demonstrates usage of the Update App Installation API to update installation metadata.

Getting started

Follow these steps to get a local copy up and running.

Prerequisites

  • Zendesk Command Line (ZCLI)

Using Zendesk Command Line

Installation

  1. Clone the repo
git clone https://github.com/zendesk/metadata_call_demo_zaf_app.git
  1. Validate and package the app
zcli apps:package
  1. Upload the app to your Zendesk account and install. You will be prompted to enter an optional form name of your choosing, and enable or disable role restrictions. These are example installation settings defined under parameters in the manifest.json file.

Uploading and installing a private app

Defining installation settings

NOTE:

  • Despite the app successfully updating metadata/setting values, because these values are cached by ZAF at app load time, you need to do an app refresh. This reloads the app and gets the updated values via subsequent client.metadata() calls.
  • PUT /api/v2/apps/installations/{id}.json API requires administrator rights. Agent level users cannot call this API.

Additional Resources

Issues

You can create an issue on Github, reach out in our Developer Community, or report the issue in the Zendesk Developers Slack group.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published