How to Get the Result Status of the Request

Environment

Service Business Logic
Feature Cloud Code for Data

Applicable only to Cloud Code for Data.

Description

Often you may need to check if the data operation completed with a success or an error in order to trigger additional business logic.

Solution

You can check how the data operation completed only in the Cloud Code for Data after* event handlers using the response parameter.

Example:

if (response.success) {
    // the request completed with success
} else if (response.error) {
    // the request completed with error
} else {

}

See Also

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.