web stats
SFTP file destination name - Mirth Community

Go Back   Mirth Community > Mirth Connect > General Discussion

Thread Tools Display Modes
Old 03-28-2017, 04:13 AM
Tsukasa Tsukasa is offline
What's HL7?
Join Date: Feb 2015
Posts: 2
Tsukasa is on a distinguished road
Default SFTP file destination name

My source is a file reader that uses a filter of *.elg.
The file names dropped into this directory will always be different.

The destination is an SFTP writer which needs to write the file with the same source name.

I dragged Original File Name from the Destination Mappings over to the File Name field.

This doesn't seem to work as I expected it to. The file is being written on the other end as $('originalFilename') and not the actual name.

What step am I missing here?
Reply With Quote
Old 03-28-2017, 06:50 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road

Inside a Velocity template (like the destination connector fields), the correct syntax should be ${originalFilename}.
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote

file name, sftp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 01:58 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation