Performing Custom Actions

By default, there are four standard scripts that you can execute in an Azure Mobile Service: delete.js, insert.js, read.js, and update.js scripts. However, you also have the option of creating a custom Mobile Service script.

Creating a custom script is useful when you need to do a more complicated database operation. For example, you might want to include a Nuke button in your Tasks app that enables you to delete all of your tasks. In that case, it would be great if you could create a nuke.js script that performs a SQL Truncate to delete all of the tasks from the Tasks table.

You can create a custom script from the Windows Azure Management Portal. Navigate to your Mobile Service at http://manage.WindowsAzure.com and ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.