Migrate/ Code Changes Azure LogicApps V1 to Logic Apps V2/Preview

Changes in the action block

Logic Apps V1 Actions Block

"actions": {
            "Execute_a_SQL_query_(V2)": {
                "inputs": {
                    "body": {
                        "query": "select * from User"
                    },
                    "host": {
                        "connection": {
                            "name": "@parameters('$connections')['sql']['connectionId']"
                        }
                    },
                    "method": "post",
                    "path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('asish.database.windows.net,1433'))},@{encodeURIComponent(encodeURIComponent('asish'))}/query/sql"
                },
                "runAfter": {},
                "type": "ApiConnection"
            }
        }

Logic Apps V2 Actions Block

 "actions": {
            "Execute_Query": {
                "inputs": {
                    "parameters": {
                        "query": "select * from user"
                    },
                    "serviceProviderConfiguration": {
                        "connectionName": "sql",
                        "operationId": "executeQuery",
                        "serviceProviderId": "/serviceProviders/sql"
                    }
                },
                "runAfter": {},
                "type": "ServiceProvider"
            }
        }

Add Comment