cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Archive Directory in SFTP Sender

rrmalgi
Participant
0 Kudos
341

Dear Community,

Is there a way we can configure the Archive directory dynamically in SFTP sender adapter?

For Ex: We have a router condition in the flow where we chose processing path based on file being empty or not.

We would like to store empty file in a different archive directory than the one's which are not.

Please suggest

P.S:

I did go through the below blog

https://blogs.sap.com/2020/05/29/cloud-integration-dynamically-configure-the-sftp-receiver-adapter/

..and the relevant one's below

https://help.sap.com/docs/CLOUD_INTEGRATION/368c481cd6954bdfa5d0435479fd4eaf/fff5b2a27deb49389c50228...

Best Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

GoranKovacic
Participant
0 Kudos

Hi Rajashekhar,

As far as I know this is not possible, because you have to configure the SFTP Adapter before reading the file itself.

What you could do though would be to use a temporary folder as the archive folder, and then after the first SFTP Adapter just use a second one, which would read from this temporary folder and move the file which you read (use its file-name as the param in the second SFTP Adapter) to where you want to move it.

Hope the idea helps!

BR
Goran