Skip to content

Instantly share code, notes, and snippets.

@Kevin-Bronsdijk
Created March 24, 2016 05:15
Show Gist options
  • Save Kevin-Bronsdijk/355c7b8c415d7b5dc909 to your computer and use it in GitHub Desktop.
Save Kevin-Bronsdijk/355c7b8c415d7b5dc909 to your computer and use it in GitHub Desktop.
{
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2015-08-01-preview/workflowdefinition.json#",
"actions": {
"CallAutomationWebhook": {
"conditions": [],
"inputs": {
"body": "[  {    \"Id\": 1,    \"Name\": \"S1\",    \"ServiceName\": \"S1\"  },  {    \"Id\": 2,    \"Name\": \"S2\",    \"S2\": \"M\"  }]",
"method": "POST",
"uri": "https://s1events.azure-automation.net/webhooks?token={token}}"
},
"type": "Http"
},
"DoSomethingWithJobId": {
"conditions": [
{
"dependsOn": "CallAutomationWebhook"
}
],
"inputs": {
"body": "@first(body('CallAutomationWebhook')['JobIds'])",
"method": "POST",
"uri": "http://requestb.in/vy8upivy"
},
"type": "Http"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {},
"triggers": {
"manual": {
"inputs": {
"schema": {
"properties": {},
"required": [],
"type": "object"
}
},
"type": "Manual"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment