cancel
Showing results for 
Search instead for 
Did you mean: 

How the same file will upload on 2 diferent SFTP locations

former_member590887
Discoverer
0 Kudos

Hi Folks,

I'm working on one scenario where ESR contents are desgined and we need to use one same file posted to 2 different SFTP directories. One file will go daily in one directory and the same file will go on one more directory only once in a week.

Frequency of file is 1 only.

Sender side I'm using Proxy & Receiver is SFTP. Please advice.

Accepted Solutions (0)

Answers (2)

Answers (2)

irijsdijk
Participant
0 Kudos

If your scenario only runs once a day you can use a global variable to check how many times you've run the interface on a daily basis.

apu_das2
Active Contributor
0 Kudos

Hi,

Right now what coming in my mind is below, but this will work if you already know in which day of the week the second file will be delivered to the second SFTP.

You have to create 2 separate BC for 2 separate SFTP server and accordingly 2 receiver communication channels. For the second SFTP, one OM and eventually one MM is required to be created. In the root field of the MM of the second SFTP, check if current day is the desired day of message delivery to the 2nd SFTP or not. If it is the desired day, then the file will be created else not. Alternatively, you can create one Java Mapping as well.


Thanks,

Apu

former_member590887
Discoverer
0 Kudos

Hi Apu,

Thanks for your suggestion, i'm trying to achive this.

Will let you know.

Thanks,

Harjinder