Announcement

Collapse
No announcement yet.

Variable with ${originalFilename} not getting transformed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Variable with ${originalFilename} not getting transformed

    I have a destination transformer Variable called zipFile that has "${originalFilename}" for the Mapping, added to the Channel Map. Then in a postprocessor script I retrieve the file name with:

    var zipFile = channelMap.get('zipFile');

    When I do this the value of zipFile is the literal ${originalFilename} instead of the actual file name. I tried removing the double quotes in the Mapping, but that simply altered the value to the literal originalFilename. How do I get the channel to provide me with the real name for the file?

  • #2
    I was able to accomplish it like this...

    destination transformer:
    Code:
    channelMap.put('OrigFilename', sourceMap.get('originalFilename'));
    postprocessor:
    Code:
    var zipFile = channelMap.get('OrigFilename')

    Comment


    • #3
      Thanks, that seems to have done the trick.

      Comment

      Working...
      X