App Configuration using v2

回答済み


投稿日時:2017年5月02日

How to create app configurations/settings page in V2?

I could not find any examples.

 


0

12

12件のコメント

This only gives me the possibility to set app parameters at installation time. However, I cannot set/modify the parameters at a later (post-installation) time.

What I would  need is an "App Configuration" page like the one attached. "parameters" does not seem to give this to me. Any tips?

0


Hi Eswari,

I hope this message finds you well and healthy.

You would do this by adding parameters to your manifest file:

"parameters": [
  {
    "name": "subdomain",
    "type": "text",
    "required": true,
    "secure": false,
    "default": "yoursubdomain"
  },
  {
    "name": "token",
    "type": "text",
    "required": true,
    "secure": true
  },
  {
    "name": "useSSL",
    "type": "checkbox"
  }
]

You can retrieve the setting values in your app with client.metadata():

var client = ZAFClient.init();
client.metadata().then(function(metadata) {
  console.log(metadata.settings);
});

You can find more here: https://developer.zendesk.com/apps/docs/apps-v2/setup#defining-installation-settings 

Hope this helps.

Cedric

0


この投稿のコメント欄は閉じられています。

お探しのものが見つかりませんか?

新規投稿