@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.