getPrivateAccountData


Purpose

Requests a list of all private (encrypted) data and passes it by means of the onSuccess callback.

Signature

getPrivateAccountData( callback )

Returns

This method does not return anything.

Parameter

Name Description Type Use
callback Passed while sending a reply to the request for private data stored for the account that is currently open. object required

Callback structure

The PrivateAccountData object's callback can be structured as follows:

{
	onFailure: function(error) { ... },
	onSuccess: function(privateAccountData) { ... }
}

Methods

Name Description Return type
onFailure Indicates that a request was not processed. Passes the error object that contains two fields: code (a numeric value associated with an error) and description (the type of failure). Possible failure types are listed in the Constants table, in the AccountManager article. undefined
onSuccess Indicates that a request was successfully processed. Passes the privateAccountData object that contains a map of all private data for the account that is currently open. undefined

Related topics

Public API reference
AccountManager
Legal notice | Copyright © 2017 and Confidential to Pegasystems Inc. All rights reserved
PDN | Pega Mobile Client | Feedback
Advanced...