Qlik Community

Integration, Extension & APIs

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

Announcements
Now Live: Qlik Sense SaaS Simplified Authoring – Analytics Creation for Everyone: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
MaxiV
Partner - Contributor II
Partner - Contributor II

Get variables List in c#

Hi, anyone knows how can I get a variable list with c#?, its for a massive delete.

Thanks!

Labels (2)
1 Solution

Accepted Solutions
3 Replies
Øystein_Kolsrud
Employee
Employee

MaxiV
Partner - Contributor II
Partner - Contributor II
Author

Thanks!!!!

MaxiV
Partner - Contributor II
Partner - Contributor II
Author

I'm did that and works!

oIApp = oIHub.OpenApp(sAppId);

lvwVariables.Items.Clear();

Qlik.Sense.Client.IVariableList oVarList = oIApp.GetVariableList();
                
foreach(VariableObjectViewListContainer oVarItem in oVarList.Items)
{
    ListViewItem lvItem = new ListViewItem(oVarItem.Name);
    lvItem.SubItems.Add(oVarItem.Description);
    lvItem.SubItems.Add(oVarItem.Definition);

    lvwVariables.Items.Add(lvItem);
}