The DocumentDB Script Explorer now supports creating, editing, and deleting stored procedures, user-defined functions, and triggers! You can read more about DocumentDB server side programming here.
Now, let’s get started with the new functionality. Within Script Explore, click the applicable command depending on the type of script you wish to create.
Provide an id for the script, copy or paste the contents, and click Save.
When creating a trigger, there are two additional properties that you can specify: trigger type and trigger operation.
To edit an existing script, simply select it, make the desired modifications and choose save. Use the delete command to delete an existing script and the properties command to view the system properties of the currently selected script.
As always, we’d love to hear from you about the DocumentDB features and experiences you would find most valuable within the Azure portal. Please submit your suggestions on the Microsoft Azure DocumentDB feedback forum. If you haven’t tried DocumentDB yet, then get started here.