Assign a Variable to Schema?

Home Page Forums BizTalk 2004 – BizTalk 2010 Assign a Variable to Schema?

Viewing 1 reply thread
  • Author
    Posts
    • #15238

      I have created a variable in my Orch that gets the file name of the imported file from the message. I then map the fields to a SQL call. I want to pass the file name as one of my params, so I want to assign the variable I created to the destination message schema. How can this be done?

      Or.. is there a better way to pass in the filename?

    • #15239

      In a construct statement, use the message assignment statement.

      myMessage.Filename = myVarFilename;

      This assumes you have a distinguished field.
      I think your question is kind of the opposite of this one:
      https://www.biztalkgurus.com/forums/viewtopic.php?t=1474

      Intead of pulling out a value, you want to set a value.
      Xpath can also be used on the left side of an assignment statement.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.