Training
Module
Expand query and transaction functionality in Azure Cosmos DB for NoSQL - Training
Author user-defined functions and triggers using JavaScript in Azure Cosmos DB for NoSQL.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Original KB number: 981241
Consider the following scenario:
In this scenario, the database's Microsoft Visual Basic for Applications (VBA) project is not listed under the Functions node.
This is by design. This issue occurs because, when the database is opened in Disabled mode, VBA cannot enumerate any of the arguments that are defined for user-defined functions. To enumerate these arguments, VBA must be able to compile the type libraries of the modules that contain the user-defined functions. When the database is in Disabled mode, VBA cannot compile these modules. Therefore, the Expression Builder cannot display the user-defined functions for the database.
To work around this issue, you can trust the database and stop Disabled mode as follows:
Training
Module
Expand query and transaction functionality in Azure Cosmos DB for NoSQL - Training
Author user-defined functions and triggers using JavaScript in Azure Cosmos DB for NoSQL.