cancel
Showing results for 
Search instead for 
Did you mean: 

Based on the sender file name need to send to the corresponding CC'S

Former Member
0 Kudos

Hi All,

i have a below requirement.

Based on the sender file name,i need to send to the corresponding Communication channels.

Ex:if the input file is INDIA.TXT, i need to send it to CC1,

If the input file name is ENGLAND.TXT,i need to send it to CC2.

Thanks in advance...

Regards,

AVR

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I presume you have a limited number of source filenames, as you should use different receiver CC which cannot be unlimited.

So the easiest way and the lowest cost, is just to define different flows :

sender file 1 (e.g india.txt) -> receiver CC1

sender file 2 (e.g europe.txt) -> receiver CC2

sender file 3 (e.g asia.txt) -> receiver CC3

If for all your receiver CC, the file server is the same , another dynamical solution could be to define only one flow, for which you can define the target filename and target directory. Do that:

1. in sender CC, use the ASMA to store the filename in DynamicConfiguration.

2. use a message mapping, to have target = source.

and inside this MM, use an UdF to set the target filename and target directory.

3. in receiver CC, use the ASMA to get the target filename and target directory form DynamicConfiguration.

regards.

mickael

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello

Based on the sender file name,i need to send to the corresponding Communication channels.

Ex:if the input file is INDIA.TXT, i need to send it to CC1,

If the input file name is ENGLAND.TXT,i need to send it to CC2.

What you can do is:

1. In your sender comm channel, check ASMA and then select filename.

2. Go to your receiver determination, edit and select conditions

3. Click the left operand side and then select Context Object

4. Find FileName and then click Okay.

5. Fill in the value for right operand e.g INDIA.TXT

I think you can just use one sender CC e.g by making *.TXT as your filename and then let the context objects do the routing.

Hope this helps,

Mark

Edited by: Mark Dihiansan on Nov 28, 2011 3:47 AM

Edited by: Mark Dihiansan on Nov 28, 2011 3:48 AM