-
Notifications
You must be signed in to change notification settings - Fork 2
AddAnalysisCode
Arivetti edited this page Aug 11, 2025
·
8 revisions
The AddAnalysisCode function adds a new Analysis Dimension/Code to one of the 6 Analysis Groups (A1, A2, A3, A4, A5 or A6)
public WSResultStatus AddAnalysisCode(String token, String groupID, WSAnalysisDimensionCode analysisCode, Boolean create)Public Function AddAnalysisCode(String token, String groupID, WSAnalysisDimensionCode analysisCode, Boolean create) As WSResultStatus
| Parameter | Type | Description |
|---|---|---|
| token | String | The session token retrieved during authentication. |
| groupID | String | The analysis group where to add the new analysis code (A1, A2, A3, A4, A5 or A6) |
| analysisCode | WSAnalysisDimensionCode | The new analysis code to be added. |
| create | Boolean | Flag indicating whether to create the analysis code if it does not already exist. If the analysis code already exist the flag is ignored. If the analysis code does not already exist and the flag is on, it is is created. If it does not already exist and the flag is off, the analysis code is not created |
Integration ws = new Integration();
String auth = "";// See Authentication page for more
if (auth != null)
{
var newAnalysisCode = new WSAnalysisDimensionCode();
newAnalysisCode.Code = "Code1";
newAnalysisCode.Description= "Code 1 Description";
WSResultStatus r = ws.AddAnalysisCode(auth,"A1", newAnalysisCode, true);
Assert.IsTrue(r.Status == OperationStatus.Success);
}