Skip to content

Instantly share code, notes, and snippets.

@manualbashing
Created March 17, 2023 11:28
Show Gist options
  • Save manualbashing/e37e4e0670d23838eb4a636bec1f01aa to your computer and use it in GitHub Desktop.
Save manualbashing/e37e4e0670d23838eb4a636bec1f01aa to your computer and use it in GitHub Desktop.
Use chunk expression function in Logic Apps
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Compose": {
"inputs": "@chunk(variables('sourceArray'), 3)",
"runAfter": {
"Initialize_variable_-_sourceArray": [
"Succeeded"
]
},
"type": "Compose"
},
"Initialize_variable_-_sourceArray": {
"inputs": {
"variables": [
{
"name": "sourceArray",
"type": "array",
"value": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
]
}
]
},
"runAfter": {},
"type": "InitializeVariable"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {},
"triggers": {
"manual": {
"inputs": {
"schema": {}
},
"kind": "Http",
"type": "Request"
}
}
},
"parameters": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment