how to get inbound message in xlate?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf how to get inbound message in xlate?

  • Creator
    Topic
  • #54171
    shikher arya1
    Participant

      Hi,

      I want to kill the Inbound message coming into xlate by checking an If condition within the xlate. So, whenever the if condition satisfies, the message in the xlate should be killed and then written into a flat file.

      But I am unable to get that inbound message within the pre proc which I have placed inside the if condition within the xlate.

      Please assist!

      Thanks.

    Viewing 5 reply threads
    • Author
      Replies
      • #80437
        Jim Kosloskey
        Participant

          You don’t need a proc just use the SUPRESS Xlate Action inside your IF Action.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #80438
          shikher arya1
          Participant

            Thanks Jim.

            But I want to get that message before it gets killed and write it into a file.

          • #80439
            Charlie Bursell
            Participant

              Even though retired I can keep my Clovertech login so I may jump in periodically  ðŸ˜€

              The only way to get the full message in Xlate is store a copy in the USERDATA meta field in either an IB or pre-Xlate procedure then use xpmmetaget in the Xlate to extract it

              This is a feature we have asked for but yet to receive

            • #80440
              shikher arya1
              Participant

                Thanks Charlie.

                I tried storing the message in the USERDATA of metadata field in the Inbound TPS proc.

                But when I am trying to get that USERDATA using xpmmetaget in the pre xlate proc, it returns empty.

              • #80441
                Charlie Bursell
                Participant

                  Then you have either not stored correctly or not getting it correctly

                • #80442
                  Terry Kellum
                  Participant

                    In another engine, both the pre-manipulated message and the transformed message are available within the exposed message object.  

                    This would be a cool enhancement.

                Viewing 5 reply threads
                • The forum ‘Cloverleaf’ is closed to new topics and replies.