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 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.