【发布时间】:2019-07-24 08:07:38
【问题描述】:
我正在尝试更改从我使用这样的逻辑应用发出的请求中获得的 JSON 响应:
此请求将得到以下响应:
{
"invoiceID":1,
"formType":"invoice",
"amount":449,
"currency":"eur",
"description":"Invoice real estate",
"period":{"end":20122019,"start":20122020},
"owner":{
"id":91434,
"firstname":"John",
"lastname":"Doe",
"dateOfBirth":1121993,
"phoneNumber":345435435,
"countryOfBirth":"Nederland",
"IBAN":"NL28 ABNA 743734g763474324"
},
"property":{
"id":105,
"type":"apartment",
"address":"ghost lane 13",
"ZIP":"7888 CK",
"State\/Province":"Groningen",
"country":"Nederland",
"construction-year":15072009,
"previousOwners":9
},
"previousProperties":[54,193,11,454,18]
}
现在我正在尝试将上面的 JSON 组合成另一个 json 结构,例如:
{
"general": {
"invoiceID": 12,
"formType": "invoice",
"amount": 449,
"currency": "eur",
"description": "Invoice real estate",
"period": {
"end": 20122019,
"start": 20122020
}
}
}
我尝试为此使用 Compose 操作:
最后我返回响应:
此设置不起作用,我收到以下错误:
{"error":{"code":"NoResponse","message":"服务器没有收到upstream-server的应答。请求的trace-id是08586376520125765844944852801CU36。"}}
当我从逻辑应用设计器中删除 Compose 操作时,流程确实有效,但我得到的是原始 JSON 响应。
更新
我的撰写配置有以下选项:
【问题讨论】:
标签: json azure azure-logic-apps