{ "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "actions": { "Initialize_variable": { "inputs": { "variables": [ { "name": "EmailList", "type": "string", "value": "@replace(triggerBody()?['to'],',',';')" } ] }, "runAfter": {}, "type": "InitializeVariable" }, "Send_an_email_(V2)": { "inputs": { "body": { "Body": "
@{triggerBody()?['body']}
", "Importance": "Normal", "Subject": "@triggerBody()?['subject']", "To": "@triggerBody()?['to']" }, "host": { "connection": { "name": "@parameters('$connections')['office365']['connectionId']" } }, "method": "post", "path": "/v2/Mail" }, "runAfter": { "Initialize_variable": [ "Succeeded" ] }, "type": "ApiConnection" } }, "contentVersion": "1.0.0.0", "parameters": { "$connections": { "defaultValue": {}, "type": "Object" } }, "triggers": { "manual": { "inputs": { "method": "POST", "schema": { "properties": { "body": { "type": "string" }, "subject": { "type": "string" }, "to": { "type": "string" } }, "type": "object" } }, "kind": "Http", "type": "Request" } } }, "parameters": { "$connections": { "value": { "office365": { "connectionId": "/subscriptions/5a975eab-234f-40cb-aa31-1c4c0344477c/resourceGroups/testlogic/providers/Microsoft.Web/connections/office365-2", "connectionName": "office365-2", "id": "/subscriptions/5a975eab-234f-40cb-aa31-1c4c0344477c/providers/Microsoft.Web/locations/westeurope/managedApis/office365" } } } } }