GetDataByProject

Description

Returns a TransferResult containing the survey data. All levels in the project will be returned.

Signature
TransferResult GetDataByProject(string key, string projectId, bool includeSystemVariables, DatabaseType databaseType, ResponseToken token)

Parameters

Name Data Type Description

key

string required

The authentication key

projectId

string required

The project ID

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

//***************************************************
//
// GetDataByProject
//
//***************************************************
// Initiate webservice
SurveyDataSoapClient sd = new SurveyDataSoapClient();
ResponseToken token = null;
TransferResult result = null;

do
{
    result = sd.GetDataByProject(key,projectID,true,DatabaseType.Production,token);
    token = result.ResponseToken;
    //Do something with the result.
}
while(!result.ResponseToken.LastDataSet);