cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic file name in SFTP receiver

Former Member
0 Kudos

Hello All,

As part of SFTP receiver communication channel, PI need to change the extension of the file coming from source. Source sends ".txt" to PI.

PI has to change the extension to ".pgp" while writing to target SFTP directory. This is a pass thru interface with no ESR objects.

can you pls help me how to achieve this

Regards,

Naresh

Accepted Solutions (0)

Answers (3)

Answers (3)

hasan_celebi
Participant
0 Kudos

Hi Naresh;

Check this;

Regrads

Hasan

manoj_khavatkopp
Active Contributor
0 Kudos

Naresh,

If you want to change .txt to .pgp then as above suggested pravvens' solution should work, in case if you want .pgp to append the file name like source:abc.txt and target:abc.txt.pgp then u can do using standard modules,.

br,

manoj

Former Member
0 Kudos

Hello Manoj,

Thanks for your reply.

can you please tell me how to append abc.txt.pgp using standard

manoj_khavatkopp
Active Contributor
0 Kudos

you can use DynamicConfigurationBean+ Variable substitution chk this below blog :

karin_paul
Explorer

Hello Naresh,

use %ORIGINAL_FILENAME% (see note 2157735).

Add in tab "Parameters" - "Destination" in Filename:

former_member182412
Active Contributor
0 Kudos

Hi Naresh,

  • Without mapping we cannot achieve this requirement you need to use custom adapter module, Check  scenario 2 in the below document.

  • Or use java mapping to change the extension of the file name without custom module.

Regards,

Praveen.