1 Reply Latest reply: Mar 10, 2016 6:35 AM by Claes Linsefors RSS

    Qlik Sense .NET SDK - IHub.ExportApp Method usage

    Stephen Lyall

      Hi All,

       

      Has anyone used the above method in c#?

       

      I understand the first two of the three parameters (targetPath, srcAppId), but am struggling with the third "ids".

       

      The documentation states that "ids" (Type: System.Collections.Generic.IEnumerable<String>) is an "Array of identifiers. The list of all the objects in the app to be exported must be given. This list must contain the GUIDs of all these objects.".

       

      How does one produce this - from the IApp class?

       

      Example of abbreviated code:

       

      // Load the app without data

      IApp app = location.App(id, null, false, true);

       

       

      // Save the app

      app.DoSave();

      // Export the app

       

      location.Hub().ExportApp(destFile,id.AppId.ToString(),????????)

       

      My reason for asking is I'm trying to programmatically export apps from one test environment for import into another without data. I can open and save an app without the data but have been unable to produce the collection of object GUIDs needed to pass into the IHub.ExportApp method.  .

       

      Your help would be appreciated.

       

      Regards

       

      Stephen