getLastUpdateResult()

The function getLastUpdateResult() gets the last license update result.

Synopsis

string LicenseServiceClient::getLastUpdateResult();

Return Value

The function returns 0 if it could return the last license update result. In case of errors the function returns a specific error number.

Details

The function getLastUpdateResult() gets the last license update result and returns the result in a string:

[
  "getLastUpdateResult:",
  {
    "lastUpdateResult": {
      "errorcode": 0,
      "errortext": "operation \"autoupdate\" completed successfully",
      "internalerrorcode": 0,
      "internalerrortext": ""
    },
    "NextUpdateCheck": "2025-11-12T10:16:28.545Z",
    "LicenseCentralState": "AVAILABLE"
  }
]
[
  "getLastUpdateResult:",
  {
    "lastUpdateResult": {
      "errorcode": 15,
      "errortext": "gateway call to read auto update licenses for cmcontainer \"130-2111743414\" failed",
      "internalerrorcode": "",
      "internalerrortext": ""
    }
  }
]

Example

The function getLastUpdateResult() gets the last license update result.

#uses "classes/sbl/LicenseServiceClient"
main(mapping event)
{
  LicenseServiceClient licenseServiceClient;
  DebugN(licenseServiceClient.getLastUpdateResult());
}

Assignment

Licensing

Availability

UI, CTRL