GavinfirstRSS1
by Gavin LiuSeason 1
First production by Gavin
This is a basic logic app flow shown by code: { "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "actions": { "Sendanemail_(V2)": { "inputs": { "body": { "Body": "pls view ", "Subject": "@triggerBody()?['TweetText']", "To": "v-xuanyiliu@microsoft.com" }, "host": { "connection": { "name": "@parameters('$connections')['office365']['connectionId']" } }, "method": "post", "path": "/v2/Mail" }, "type": "ApiConnection" } }, "contentVersion": "1.0.0.0", "parameters": { "$connections": { "type": "Object" } }, "triggers": { "Whenanewtweetis_posted": { "inputs": { "host": { "connection": { "name": "@parameters('$connections')['twitter_1']['connectionId']" } }, "method": "get", "path": "/onnewtweet", "queries": { "searchQuery": "You" } }, "recurrence": { "frequency": "Minute", "interval": 1 }, "splitOn": "@triggerBody()?['value']", "type": "ApiConnection" } } }, "parameters": { "$connections": { "value": { "office365": { "connectionId": "/subscriptions/a45fa0ec-59f8-4c3a-b033-8ba50e7d1735/resourceGroups/RG_Xuanyi/providers/Microsoft.Web/connections/office365-2", "connectionName": "office365-2", "id": "/subscriptions/a45fa0ec-59f8-4c3a-b033-8ba50e7d1735/providers/Microsoft.Web/locations/southeastasia/managedApis/office365" }, "twitter_1": { "connectionId": "/subscriptions/a45fa0ec-59f8-4c3a-b033-8ba50e7d1735/resourceGroups/RG_Xuanyi/providers/Microsoft.Web/connections/twitter-7", "connectionName": "twitter-7", "id": "/subscriptions/a45fa0ec-59f8-4c3a-b033-8ba50e7d1735/providers/Microsoft.Web/locations/southeastasia/managedApis/twitter" } } } } }