Logic Apps - Triggers
HTTP Request
{
"triggers": {
"manual": {
"type": "Request",
"kind": "Http",
"inputs": {
"schema": {
"type": "object",
"properties": {
"orderId": { "type": "string" }
}
}
}
}
}
}
Recurrence (Schedule)
{
"triggers": {
"Recurrence": {
"type": "Recurrence",
"recurrence": {
"frequency": "Hour",
"interval": 1
}
}
}
}
Service Bus Queue
{
"triggers": {
"When_a_message_is_received": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['servicebus']['connectionId']"
}
},
"method": "get",
"path": "/@{encodeURIComponent('orders')}/messages/head"
}
}
}
}
Common Actions
HTTP Action
{
"HTTP": {
"type": "Http",
"inputs": {
"method": "POST",
"uri": "https://api.example.com/orders",
"headers": {
"Content-Type": "application/json"
},
"body": "@triggerBody()"
}
}
}
Approval Email
{
"Send_approval_email": {
"type": "ApiConnectionWebhook",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['office365']['connectionId']"
}
},
"body": {
"NotificationUrl": "@{listCallbackUrl()}",
"Message": {
"To": "[email protected]",
"Subject": "Approval Required",
"Options": "Approve, Reject"
}
},
"path": "/approvalmail/$subscriptions"
}
}
}