Example 1 – Debatching in Logic Apps with the splitOn property and Azure Functions change feed with Cosmos DB

The splitOn property in Logic Apps debatches an item array and starts a new instance of Logic Apps for each item in the array list. In this example, we will be using the Cosmos graph change feed as an example of an item array and use logic apps and Azure Functions together to build an integration that will write the changed feed data into the Azure SQL database.

Whenever there is a change to one or more user documents in the Cosmos graph database, Azure Functions will trigger a Logic Apps endpoint, which will have the splitOn property set on the request trigger.

Logic Apps will send an email notification to a user to indicate that ...

Get Serverless Integration Design Patterns with Azure now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.