Reputation: 2503
I have LogicApp which get HTTP Post from Azure Alerts. I would like to create "DimensionNames" string variable, which includes all names in array. DimensionNames value could be "name1,name2, name3, name4". Finally I would use DimenstionNames string in "call Webhook".
How do it?
Request Body Json in "When a HTTP request is received"
{
"dimensions": {
"items": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"name",
"value"
],
"type": "object"
},
"type": "array"
}
}
Upvotes: 0
Views: 1003
Reputation: 1721
Using variables and Join action you can convert array to a string variable. I have reproduced from my side and below are steps I followed,
{
"dimensions": {
"items": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"name",
"value"
],
"type": "object"
},
"type": "array"
}
}
4. Next taken Initialize variable action as shown below,
Http trigger:
Output of initialize variable,
Output if Join,
Output of initialize variable 2,
Reference link
Upvotes: 1