Parsed Message
{
"date": "2022-02-04",
"customerID": 123,
"customerInfo": {
"id": 123,
"lastname": "Smith",
"firstname": "David",
"email": "[email protected]",
},
"currency": "EUR"
}
I would like to remove the customerInfo section so the JSON looks like.
{
"date": "2022-02-04",
"customerID": 123,
"currency": "EUR"
}
How would one do this in the LogicApp. I tried remove property but could not get that working. Any suggestions would be appreciated.
2
Answers
You just initialize new variable from that one and populate it
I have not checked the format of the json in an actual logic app, but you get the idea
I have reproduced in my environment and removed customer info using remove property as below :
Firstly, I have initialized a variable as below:
Then I used compose operation as below:
In compose input:
removeProperty(variables('emo'),'customerInfo')
Then i have set the variable with output of compose as below:
Output:
Try to follow above process you will get to remove customerInfo as mine got.