FTP Filename in proc

Clovertech Forums Cloverleaf FTP Filename in proc

  • Creator
    Topic
  • #121834
    Jason Russell
    Participant

      Help isn’t helping a lot here, and I’m not seeing it in the args passed into a tcl tps proc, but is there a way to get the file name of a file picked up by the FTP process?

    Viewing 1 reply thread
    • Author
      Replies
      • #121835
        James Cobane
        Participant

          Jason,

          Yes, this information is available within the DRIVER CONTROL portion of the metadata of the message.  Here is a snippet of Tcl code that you could put into a proc in the inbound context that would give you that information from the message:

          set myklst [msgmetaget $mh DRIVERCTL]
          keylget myklst FILENAME myFileName

          Hope that helps.

          Jim Cobane – Henry Ford Health

        • #121836
          James Nelson
          Participant

            In a tclproc:

            set meta_kl [msgmetaget $mh DRIVERCTL]

            keylget  meta_kl FILENAME FileName

             

            In an Xlate:

            set DriverCtl [xpmmetaget $xlateId DRIVERCTL]

            keylget DriverCtl FILENAME FileName

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.