Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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 (1)
1 Solution
3 Replies
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);
}