Is it possible to dynamically choose the FTP API connection that I want to use? We have defined two FTP API connections in the same resource group, with name ftptest1 and ftptest2.
How can I select one of these in the code view of the Logic App? I'm only able to select the connection in the designer and then connection 'ftp' is created. See code snippet below.
But I need to dynamically select one of the two FTP connections based on a parameter.
"inputs": {
"body": "@body('XMLFile')",
"host": {
"api": {
"runtimeUrl": "https://logic-apis-westeurope.azure-apim.net/apim/ftp"
},
"connection": {
"name": "@parameters('$connections')['ftp']['connectionId']"
}
},
Is it possible to change the "@parameters('$connections')['ftp']['connectionId']" and select an existing API Connection there by name or something else?
Thank you!