writeBinaryItem


Purpose

Adds or updates an item with reference to a binary file.

You can use this method if the offline case attachments support has been enabled by using the setFileForwardingState method.

Signature

writeBinaryItem( type, handle, fileReference, onSuccess, onFailure )

Returns

This method does not return anything.

Parameters

Name Description Type Use
type Denotes the type of data to be written. Item types are freely defined data item categories. string required
handle Data item identifier. Supports partial matches if full matches are not found. string required
fileReference File reference to a binary file in the file system. string required
onSuccess A callback function, informs that the operation completed successfully. function required
onFailure A callback function, called when the operation fails. Passes a JSON object that consists of an error code, as defined in the Constants table in the Client Store article, and an error message. function required

Related topics

Client Store
getFileForwardingState
Legal notice | Copyright © 2018 and Confidential to Pegasystems Inc. All rights reserved
PDN | Feedback
Advanced...