Message ReceivedFileName problem

Home Page Forums BizTalk 2004 – BizTalk 2010 Message ReceivedFileName problem

Viewing 1 reply thread
  • Author
    Posts
    • #17779

      Okay here is another challenge for all the gurus out there…

       

      I'm trying to set the ReceivedFileName property in a message assignment inside a construction shape.

      What i do is the following:

       

      productNameAffix = System.Convert.ToString(ExcelContract(FILE.ReceivedFileName));

      productNameAffix = productNameAffix.Substring(0, productNameAffix.Length-4);

      productNamePrefix = "E" + eCode;

      productNamePrefix = productNamePrefix + "_N";

      productNamePrefix = productNamePrefix + strCount;

      productNamePrefix = productNamePrefix + "_";

      productFileName = productNamePrefix + productNameAffix;

       

      ContractProduct(FILE.ReceivedFileName) = productFileName;

       

      — now anyone would think what i would get is the prefix + the affix but noo i only get the affix… if i would say affix + prefix it would result in affix + prefix… i think i tried almost any possible version of this code … so maybe anyone had a similar problem?

    • #17786

      For all of you that are as blind as I am, here is a link which deals with this problem…

       

      http://www.biztalkgurus.com/Samples/Append-SourceFileName-Orchestration.html

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