我正在尝试更改从使用Logic应用程序发出的请求中得到的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操作:
最后我返回响应:
此设置无效,并且出现以下错误:
{“错误”:{“代码”:“ NoResponse”,“消息”:“服务器didbnt收到上游服务器的答复。该请求的跟踪ID是08586376520125765844944852801CU36。”}}
当我从逻辑应用程序设计器中删除Compose操作时,该流程确实起作用,但是我得到了原始的JSON响应。
更新
我的撰写配置有以下选项:
希望有人可以帮助我!