Tuesday, January 8, 2019

Use getAll to retrieve State Values

State values like Support Case Status, Support Case Types etc cannot be retrieved using search operation. In this case, getAll should be used instead. Following is a sample C# code used to retrieve Support Case Status:

public virtual void getAllCaseStatus()
{
     GetAllRecord recType = new GetAllRecord();
      recType.recordType = GetAllRecordType.supportCaseStatus;
      recType.recordTypeSpecified = true;

      GetAllResult getResult = _service.getAll(recType);
      if (getResult.status.isSuccess)
      {
        _out.writeLn("\n Support Case Status Total: " + getResult.totalRecords);
   }
}

No comments:

Post a Comment