Recherches récentes


Pas de recherche récente

Sorin Vatasoiu's Avatar

Sorin Vatasoiu

Adhésion le 15 avr. 2021

·

Dernière activité le 14 févr. 2022

Suivis

0

Abonnés

0

Activité totale

7

Votes

0

Abonnements

2

APERÇU DES ACTIVITÉS

Dernière activité effectuée par Sorin Vatasoiu

Sorin Vatasoiu a ajouté un commentaire,

Commentaire de la communauté 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);
});

Afficher le commentaire · Publication le 15 mai 2017 · Sorin Vatasoiu

0

Abonnés

0

Votes

0

Commentaire


Sorin Vatasoiu a ajouté un commentaire,

Commentaire de la communauté 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": ""
}

Afficher le commentaire · Publication le 12 mai 2017 · Sorin Vatasoiu

0

Abonnés

0

Votes

0

Commentaire


Sorin Vatasoiu a ajouté un commentaire,

Commentaire de la communauté Developer - Zendesk Apps Framework (ZAF)

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

 

Afficher le commentaire · Publication le 01 mai 2017 · Sorin Vatasoiu

0

Abonnés

0

Votes

0

Commentaire


Sorin Vatasoiu a ajouté un commentaire,

Commentaire de la communauté 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?

Afficher le commentaire · Publication le 01 mai 2017 · Sorin Vatasoiu

0

Abonnés

0

Votes

0

Commentaire


Sorin Vatasoiu a créé une publication,

Publication 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?

 

Publication le 01 mai 2017 · Sorin Vatasoiu

0

Abonnés

10

Votes

19

Commentaires