如何使用在逻辑应用程序中也具有拆分功能的参数传递 HTTP url?
How can I pass HTTP url using parameter which is having split function also in logic app?
在逻辑应用程序中,我有一个 HTTP 连接器,我在其中使用拆分操作传递过滤器。
当我尝试使用参数中的所有 url 时,它抛出错误 - 格式不正确。
以前当我通过 complete url
时它是这样工作的
"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')}
.
在逻辑应用程序中,我有一个 HTTP 连接器,我在其中使用拆分操作传递过滤器。
当我尝试使用参数中的所有 url 时,它抛出错误 - 格式不正确。
以前当我通过 complete url
时它是这样工作的"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')}
.