我有下面的JSON,需要在逻辑应用程序中进行更新
{
"name": "SampleDoc",
"type": "123",
"properties": {
"GP.Test": "M1",
"MG.Test": "C1"
}
}
我已使用以下setProperty语法:-
@setProperty(variables('ResponseBody'),'properties', setProperty(variables('ResponseBody')['properties'], 'test','abc'),
setProperty(variables('ResponseBody')['properties'], 'GP.Test','M2'))
我想要的JSON输出应为
{
"name": "SampleDoc",
"type": "123",
"properties": {
"GP.Test": "M2",
"MG.Test": "C1"
}
}
但是当我运行它时,出现此错误:-
InvalidTemplate。在行'1'和列'2617'的操作'Compose'输入中,无法处理模板语言表达式:'提供的属性名称'GP.Test'具有这些无效字符'。'。该名称不能包含以下任何符号:'[,],。'。'。
有人可以建议我们是否可以处理'。'内部撰写或任何其他方式来实现这一目标?