GetLevelByName

Description

Returns a TransferResult containing the response data of one specified level for a project.

Signature
TransferResult GetLevelByName(string key, string projectId, string[] levelNames, bool includeSystemVariables, DatabaseType databaseType, ResponseToken token)

Parameters

Name Data Type Description

key

string required

The authentication key

projectId

string required

The project ID

levelNames

string[ ] required

The names of the levels to return.

includeSystemVariables

bool required

True will include all the system variables in the result, false will exclude them.

databaseType

DatabaseType required

Production or Test.

token

ResponseToken optional

The response token.

Response

Data Type Description

Example

//***************************************************
//
// GetLevelByName
//
//***************************************************
// Initiate webservice
SurveyDataSoapClient sd = new SurveyDataSoapClient();
ResponseToken token = null;
TransferResult result = null;
//The levles to get
string[] levels = new string[2]{"NameOfLevel 1","NameOfLevel 2"};
do
{
    result = sd.GetLevelByName(key,projectID,levels,true,DatabaseType.Production,token);
    token = result.ResponseToken;
    //Do something with the result.
}
while(!result.ResponseToken.LastDataSet);