Reference parameter for arm template

RAVIRAJ 40 Reputation points
2023-07-25T17:00:01.14+00:00

I need to pass the template parameter values to logic app actions as input for response connector. Can anyone guide me with this issue as when i deploy the template i get the error as "the workflow 'values from template property' does not support flow kind property"?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,336 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,826 Reputation points
    2023-07-27T04:48:48.2766667+00:00

    @RAVIRAJ Thanks for reaching out. Assuming that you are talking about the HTTP response connector or any connector. You need to define the parameter in your workflow using the ARM template and now that parameter you can use inside your workflow.

    For example, I am creating the responseMessage parameter in my workflow and used this parameter in my response action body as "body": "@parameters('responseMessage')" in my ARM template. For your reference sharing the complete ARM template so you can modify as per your need.

                     "parameters": {
                           "responseMessage": {
                                 "value": "[parameters('responseMessage')]"
                    }
                }
    
    {
        "$schema": "https:schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
        "contentVersion": "1.0.0.0",
        "parameters": {
            "logicAppName": {
                "type": "string",
                "metadata": {
                    "description": "The name of the Logic App."
                }
            },
            "responseMessage": {
                "type": "string",
                "metadata": {
                    "description": "The message to return in the response."
                }
            }
        },
        "variables": {},
        "resources": [
            {
                "type": "Microsoft.Logic/workflows",
                "apiVersion": "2017-07-01",
                "name": "[parameters('logicAppName')]",
                "location": "[resourceGroup().location]",
                "properties": {
                    "definition": {
                        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json",
                        "contentVersion": "1.0.0.0",
                        "parameters": {
                            "responseMessage": {
                                "type": "string",
                                "defaultValue": ""
                            }
                        },
                        "triggers": {
                            "manual": {
                                "type": "Request",
                                "kind": "Http",
                                "inputs": {
                                    "schema": {
                                        "type": "object",
                                        "properties": {
                                            "message": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            }
                        },
                        "actions": {
                            "response": {
                                "type": "Response",
                                "inputs": {
                                    "statusCode": 200,
                                    "body": "@parameters('responseMessage')"
                                },
                                "runAfter": {}
                            }
                        },
                        "outputs": {}
                    },
                    "parameters": {
                        "responseMessage": {
                            "value": "[parameters('responseMessage')]"
                        }
                    }
                }
            }
        ],
        "outputs": {}
    }
    

    Feel free to get back to me if you need any assistance.

    Please "Accept Answer" if the answer is helpful so that it can help others in the community.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.