最近搜索


没有最近搜索

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

评论