Hi All,
I'm trying to configure Remote file path for a dynamic folder that I'm creating before Sending Files using SFTP Send File Smart Service. Since Remote File Path only allows text, how can I configure my pv! value in this path? For example - "Inbox/pv!FolderName" is not working because it is reading as a whole text. Please advise.
Discussion posts and replies are publicly visible
Have you tried using concat(). It looks as if you are just sending a string, instead of adding your pv!FolderName to the stringconcat("Inbox/",pv!folderName)
When you click on the little edit box besides Value it will open an expression editor. There you can mention value as "Inbox/"& pv!FolderName or concat("Inbox/",pv!FolderName). With the operator & or function concat() system will fetch the data from pv and merge with string giving output as expected.
Hope this helps!
Thank you Harsha Sharma that works. Do you know how can i check if this file path exists using command prompt? Or what would be the linux command to check if concat("Inbox/",pv!FolderName) exists?
Thank you anthonyp8915 Do you know how can i check if this file path exists using command prompt? Or what would be the linux command to check if concat("Inbox/",pv!FolderName) exists?
You would use the "check contents" smart service (either the "get remote folder contents" node, or the "getfoldercontentsoversftp()" rule), on the root folder (just pass in a "null" or "/" value for "server remote folder" / "server file path" to check the root directory), and check your list of results for the folder you're looking for.