close

Endpoint Security Lexington

},

Note that this method calls another method named “GetAccount( id, successCallback, errorCallback)” (displayed below) which contains the code to retrieve the account information via the OData endpoint. If an error is returned via the OData retrieval, the errorCallback function, given by “GetAccountErrorCallback”, will be called. If the OData retrieval is successful, the object “account” in the method is populated and is passed as a parameter into the successCallback function. In this example, the successCallback is given by the “CopyAccountAddressToContactAddress” function, which copies the account’s address to the contact record.

The “GetAccount” method contains the XMLHttpRequest request manipulation via the OData endpoint:

GetAccount: function (accountId, successCallback, errorCallback) {

endpoint security el capitan     endpoint security console

TAGS

CATEGORIES