Announcement

Collapse
No announcement yet.

Getting the D_MC2 Message Id in Channel Destingation

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

  • Getting the D_MC2 Message Id in Channel Destingation

    Our system currently archives messages and the File Pattern to build the filename includes the Message ID. This Message ID corresponds to the Message ID which is held in the D_MC2 table and the corresponding code is ${message.messageId}

    Is it possible to get the same Message ID (residing in the D_MC2 table) so that it can be used in the JavaScript editor in the Destination script of the Channel. I do have a Message ID mapping listed under the Destination Mappings. However this translates to connectorMessage.getMessageId() which doesn't return the same value I'm after.

    Thanks in advanced for your help.

  • #2
    That appears to work fine for me.
    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.

    Comment


    • #3
      Thanks narupley for getting back to me.

      I take it that for you ${message.messageId} in the Archiving section and connectorMessage.getMessageId() in the Channel Destination section are both returning the Message ID from D_MC2 table.

      For me, the connectorMessage.getMessageId() is returning a message id which its value is way smaller than the maximum id in D_MC2. Not sure how you got yours to work.

      Comment

      Working...
      X