I am trying to Initialized and isolate a specific array from a complex Json body in Power Automate.
I have been able to do it before using the same formula, but I am now stuck trying to escape the "-" including in the name of the array, as it seems to be the source of the error I am getting based on my trouble shooting steps.
I appreciate any suggestion!
The WDL looks like:
variables('formdata').kr\-answers
But the code view adapts my attempts to escape with: "\"
{
"type": "InitializeVariable",
"inputs": {
"variables": [
{
"name": "try",
"type": "array",
"value": "@variables('formdata').kr\\-answers"
}
]
},
"runAfter": {
"Initialize_variable": [
"SUCCEEDED"
]
}
}