Mirth Connect 4.1.0 Released!

Mirth Connect 4.1.0 is now available as an appliance update and on our GitHub page. Mirth Connect 4.1.0 includes new features such as new event log messages, additional fields to the Welcome to Mirth Connect screen, new information included in alerts as well as many smaller changes, updates, and improvements. This release also contains several improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

change filename

  • Filter
  • Time
  • Show
Clear All
new posts

  • change filename

    Can I make my filename look like this?

    "adt-ao1.ao1" or something descriptive like that? I used ${message.type} for the filename but it gives me "result.file" Is there a way to do this in javasript or in any ways possible? thanks guys! any suggestions will help

  • #2
    Re:change filename

    You can crete a variable using a JS step.
    Then, you can use the variable as the name of the file.


    • #3
      Re:change filename

      If I use a javascipt, does it require me to use reference functions like
      channelMap.put(key,''). I can't understand the parameters here.. Can u please explain?

      I'm only used to creating variables in the mapper. However, I can't undesrtand the syntax for the "Default Value, Regex, Replace With" ..

      Thank u albert!!!


      • #4
        Re:change filename

        Using the mapper is the same than using the funcion channelMap.put(key,data).

        To use this function

        key--> The name of the variable. This should be a string like 'myNewVariable'
        data--> The data to put into the variable.


        is the same than create a mapper step with name 'msh10' and the msh.10 field of the input message.

        Default value is the value if the map has no value. Regexp is for regular expressions... Google it.


        • #5
          Re:change filename

          Now I understand the parameteres, THanks to you!
          Does the default value and the Replace with requires me to use " ". I tried that before but it didn't work..

          Post edited by: shifting_18, at: 05/28/2007 18:29