Qlik Community

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Read about the latest Qlik Community enhancements on the Community News blog!
cancel
Showing results for 
Search instead for 
Did you mean: 
noa_elharrar
Contributor
Contributor

Qlik Sense Extension - Get variable value


How to get the value of a variable defined in qlik sense in an extension written in java script?

I tried it but it did not work for me

require(["js/qlik"], function(qlik) {
  //open the app
  var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
  //get the variable content
  app.variable.getContent('MYVAR',function ( reply ){
    alert( JSON.stringify( reply ) );
  });
});

Thank you!

1 Reply
dannyy81
Contributor III
Contributor III

strange - did you write the variable in the app the same by case sensitive?