FAQs: Business Logic

Environment

Service Business Logic
Feature Cloud Code for Data, Cloud Functions

Introduction

This article answers questions about the Business Logic service of Telerik Platform. They mainly revolve around making application-critical checks using the request and response objects and also performing common operations.

If not stated otherwise, the content is applicable to Cloud Code for Data and Cloud Functions.

Can I determine the user account making the request?

You can get information about the account from the request.principal.data object of the request parameters. This information, however, will be available only if the request was made by an authenticated user.

More information is available in this article.

How do I get the body of the incoming request?

You can get it from the request parameters.

More information is available in this article.

How do I get the result status of the request?

You can use the response parameters of the after events of the Cloud Code for Data to get the completion status of the data operation.

More information is available in this article.

How do I apply filtering criteria before returning data?

Applicable only to Cloud Code for Data. You can do this in the Cloud Code for Data before event handlers.

More information is available in this article.

How do I determine the Id of the requested item?

Applicable only to Cloud Code for Data. You can get the Id of the requested item from the request parameters.

More information is available in this article.

Can I send a push notification when an item is created, updated, or deleted?

Yes. Use the Cloud Code SDK in the appropriate before or after event handler to send a push notification.

More information is available in this article.

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.