FRAMES | NO FRAMES
DownloadData Method

Compresses the specified folders of a project and returns URLs for download.

Availability: Business Analyst Server.

string[] DownloadData ( 
    string    WorkspaceName, 
    string    ProjectName, 
    string[]  Folders 
);

Parameter Description
WorkspaceName Workspace name. Type String.
ProjectName Workspace name. Type String.
Folders Array of project folders to be downloaded. Type String[].

Returns

Variable of type String[] containing URLs on compressed project folders.

Examples

The example below compresses the entire Custom Data folder and its contents of the Default Project of the Default Workspace and returns an URL to download this archive.

C#
// Instantiate the BAServerHelper class to access analysis methods
BAServerHelper baServerHelper = new BAServerHelper();
 
// You can specify below a domain of your local Business Analyst Server.
//baServerHelper.BAServerDomain = "esri.com";
 
// If a domain name is specified, a local server name in output URLs is replaced with the
// fully-addressable server name so people and machines outside the domain of your local
// Business Analyst Server instance can access these URLs.
 
string workspace = "Default Workspace";
string project = "Default Project";
string[] folders = new string[] { "Custom Data" };
 
string[] results = baServerHelper.DownloadData(workspace, project, folders);
string downloadURL = results[0];

See Also