UpdateSurveyHistoryVariables

Description

Update Survey History variables by userId

Signature
int UpdateSurveyHistoryVariables(string key, string panelProjectId, int userId, string jobNumber, string[] fieldNames, string[] fieldValues)

Parameters

Name Data Type Description

key

string required

The authentication key

panelProjectId

string required

The project id of the panel

userId

int required

The ID of the panelist

jobNumber

string required

The jobNumber to update values for

fieldNames

string[ ] required

The field names to update

fieldValues

string[ ] required

The values to update (corresponding to the field names)

Response

Data Type Description

int

The result code for the update:

Code

Description

0

Update successful.

-1

Error on the client end, for example not being able to connect to the panel database etc.

-2

The unique constraint is violated, i.e. another panelist already exists with the provided value(s) you are trying to set for (one of) the unique field(s) (email + any user provided unique fields).

-3

Other database errors when updating the panelist.

-4

The panelist does not exist.

-5

The password failed on one or more of the password complexity rules, according to the Panel settings for password complexity.

Example

var communityPanelSoapClient = new CommunityPanelSoapClient();

var resultCode = communityPanelSoapClient.UpdateSurveyHistoryVariables(
    key,
    "p123456789",
    "99",
    "jobnumber1234",
    new []{"SurveyType", "Payable"},
    new []{"1", "false"}
);