最近の検索


最近の検索はありません

Sorin Vatasoiu's Avatar

Sorin Vatasoiu

参加日2021年4月15日

·

前回のアクティビティ2022年2月14日

フォロー中

0

フォロワー

0

合計アクティビティ

7

投票

0

受信登録

2

アクティビティの概要

さんの最近のアクティビティ Sorin Vatasoiu

Sorin Vatasoiuさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk Apps Framework (ZAF)

Cedric,

Thank you again for your help.

I'm now able to set and use the custom environmental variables for my app.

I post here the code that worked, it may help other people, as many examples on the web are for v1 framework and they do not seems to work for v2

var zendeskAcsWSurl = '';

var client = ZAFClient.init();

// get the metadata settings
client.metadata().then(function (metadata) {
   // assigning the web service base url from the configuration files
   zendeskAcsWSurl=metadata.settings.ACSServiceBaseUrl; 
   //console.log(metadata.settings);
});

コメントを表示 · 投稿日時:2017年5月15日 · Sorin Vatasoiu

0

フォロワー

0

投票

0

コメント


Sorin Vatasoiuさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk Apps Framework (ZAF)

Cedric,

I tried to follow your advice and I added a new line to the manifest file "ACSServiceBaseUrl":

I added the line with an empty value as I was expecting to fill it an use it in the app settings and use it in the code.

After I validated, packaged and install the app in Zendesk, I opened the the app settings, but I do not see a place where I can update a value for "ACSServiceBaseUrl".

Did I miss anything from your explanation?

manifest.json

{
"name": "ACS Customer Information",
"author": {
"name": "s v",
"email": "sv@xxx.xxx",
"url": ""
},
"defaultLocale": "en",
"private": true,
"location": {
"support": {
"ticket_sidebar": "assets/iframe.html"
}
},
"version": "1.0",
"frameworkVersion": "2.0",
"type": "text",
"required": true,
"secure": false,
"default": "yoursubdomain",
"ACSServiceBaseUrl": ""
}

コメントを表示 · 投稿日時:2017年5月12日 · Sorin Vatasoiu

0

フォロワー

0

投票

0

コメント


Sorin Vatasoiuさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk Apps Framework (ZAF)

Thank you for those ideas. This seems to be the correct way to do the setup.

 

コメントを表示 · 投稿日時:2017年5月01日 · Sorin Vatasoiu

0

フォロワー

0

投票

0

コメント


Sorin Vatasoiuさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk Apps Framework (ZAF)

Cedric,

Thank you for the response.

I see how your solution will move the variables from the javascript code (where I have them now) to the manifest file.

Does this means that for various environments, I will need to have more manifest files, of that I will need to change the values in the manifest before each "zap package" operation?

コメントを表示 · 投稿日時:2017年5月01日 · Sorin Vatasoiu

0

フォロワー

0

投票

0

コメント


Sorin Vatasoiuさんが投稿を作成しました:

投稿 Developer - Zendesk Apps Framework (ZAF)

I did built a custom app that integrate another system into the Zendesk UI for our company.

The application is working very well and I'm getting ready to deploy it into the production environment.

There are few variables that hold connection information that will need to switch between values based on the environment where it is deployed.

Those variables holds url's for web services, database connection strings, logging setup...

I would like to know if there are best practices for setting and managing those  environmental variables to be easy to deploy the app in different environment?

 

投稿日時:2017年5月01日 · Sorin Vatasoiu

0

フォロワー

10

投票

19

コメント