AddAnalysisCode - accountsIQ/API-Wiki GitHub Wiki

The AddAnalysisCode function adds a new Analysis Dimension/Code to one of the 6 Analysis Groups (A1, A2, A3, A4, A5 or A6)

Declaration

C#

public WSResultStatus AddAnalysisCode(String token, String groupID, WSAnalysisDimensionCode analysisCode, Boolean create)

Visual Basic

Public Function AddAnalysisCode(String token, String groupID, WSAnalysisDimensionCode analysisCode, Boolean create) As WSResultStatus

Parameter List

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

Example

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
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);
}

See Also

⚠️ **GitHub.com Fallback** ⚠️