Azure 我如何使用在logic app中也具有拆分功能的参数传递HTTP url?
在logic应用程序中,我有一个HTTP连接器,在那个里我使用拆分操作通过过滤器 当我试图使用参数中的所有url时,它抛出错误-格式不正确 以前,当我传递完整的url时,它是这样工作的Azure 我如何使用在logic app中也具有拆分功能的参数传递HTTP url?,azure,azure-logic-apps,Azure,Azure Logic Apps,在logic应用程序中,我有一个HTTP连接器,在那个里我使用拆分操作通过过滤器 当我试图使用参数中的所有url时,它抛出错误-格式不正确 以前,当我传递完整的url时,它是这样工作的 "HTTP": { "type": "Http", "inputs": { "method": "GET", "uri": "https://demo.api.c
"HTTP": {
"type": "Http",
"inputs": {
"method": "GET",
"uri": "https://demo.api.com/getcustomers?$format=json&$filter=dateForSystem eq '@{split(body('Get_MaxDateTime')?['keyValue'],' ')[0]}'&$skip=@{variables('DemoVariable')}",
"headers": {
}
},
"runAfter": {
"Set_variable_AccessToken": [
"Succeeded"
]
}
}
我想参数化uri,所以我创建了一个如下参数
它不起作用了
"HTTP": {
"type": "Http",
"inputs": {
"method": "GET",
"uri": "[parameters('HTTPuri')]/getcustomers?$format=json&$filter=dateForSystem eq '@{split(body('Get_MaxDateTime')?['keyValue'],' ')[0]}'&$skip=@{variables('DemoVariable')}",
"headers": {
}
},
"runAfter": {
"Set_variable_AccessToken": [
"Succeeded"
]
}
}
"parameters": {
"HTTPuri": {
"type": "string",
"defaultValue": "https://demo.api.com/"
},
这是因为您引用参数的方式错误。正确的格式应该是
@{parameters('HTTPuri')}