How to NOT delete a file in a Azure FTP connector action if the transfer fails in a logic app -
i have successful connection setup between ftp site , dropbox using azure logic app. while setting kept downloading file then, since had next step wrong, deleting.
in test environment annoying. in production, pretty awful.
here code using on action part:
"operation": "uploadfile", "parameters": { "filepath": "@{triggers().outputs.body.filepath}", "content": { "content": "@{triggers().outputs.body.content}", "contenttransferencoding": "none" }, "overwrite": true }, is there can if fails leave file on server?
i'm not 100% sure mean, give try. maybe can reformulate question if misinterpret you.
but yes, there exists "conditions" in logic apps can used. if new logic apps i'd suggest use "designer view" , can click "add condition met". visualize text box in can formulate conditions. instance:
@equals({your data}, bool('true')) to check if value true, or similar check if data null.
Comments
Post a Comment