tests/functions/tasks/_Raw.LogicApp.Trigger.Cds.json

{
    "type": "Microsoft.Logic/workflows",
    "apiVersion": null,
    "name": "LA-TEST-Exporter",
    "location": "westeurope",
    "tags": {},
    "identity": {},
    "properties": {
      "state": "Enabled",
      "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "contentVersion": "1.0.0.0",
        "parameters": {
          "$connections": {
            "defaultValue": {},
            "type": "Object"
          }
        },
        "triggers": {
          "When_a_row_is_modified": {
            "inputs": {
              "body": {
                "NotificationUrl": "@{listCallbackUrl()}"
              },
              "host": {
                "connection": {
                  "name": "@parameters('$connections')['commondataservice']['connectionId']"
                }
              },
              "path": "/datasets/@{encodeURIComponent(encodeURIComponent('https://TestEnvironment.dynamics.com'))}/tables/@{encodeURIComponent(encodeURIComponent('accounts'))}/onupdateditemswebhook",
              "queries": {
                "scope": "Organization"
              }
            },
            "type": "ApiConnectionWebhook"
          }
        },
        "actions": {},
        "outputs": {}
      },
      "parameters": {
        "$connections": {
          "value": {
            "commondataservice": {
              "connectionId": "/subscriptions/b466443d-6eac-4513-a7f0-3579502929f00/resourceGroups/rgTest/providers/Microsoft.Web/connections/commondataservice",
              "connectionName": "commondataservice",
              "id": "/subscriptions/b466443d-6eac-4513-a7f0-3579502929f00/providers/Microsoft.Web/locations/westeurope/managedApis/commondataservice"
            }
          }
        }
      },
      "integrationAccount": null,
      "accessControl": null
    }
  }