BizTalk 2013 SFTP SEND Folderpath custom pipeline RRS feed

  • Question

  • Hi,

    this is a bit of a challenge. is there a way to specify the folderpath attribute of the SFTP adapter using a custom send pipeline? what property can I use?

    your help is much appreciated.

    Regards, Mazin - MCTS BizTalk Server 2006

    Tuesday, May 24, 2016 4:20 PM


  • Hi Mazin,

    Server, FolderPath & Port properties are set in the address.

    // Set base properties 
    MySendPort(Microsoft.XLANGs.BaseTypes.Address) = "sftp://Server[:Port]/FolderPath/";
    MySendPort(Microsoft.XLANGs.BaseTypes.TransportType) = "SFTP"; 
    // Set the SFTP adapter specific properties 
    MsgOut(SFTP.Username) = "user";

    In case scenario is pure messaging, we can set properties inside receive pipeline.

    Set and promote OutboundTransportType and OutboundTransportLocation properties inside receive pipeline.

    pInMsg.Context.Promote("OutboundTransportType", "", "SFTP");
    pInMsg.Context.Promote("OutboundTransportLocation", "", "sftp://Server[:Port]/FolderPath/");


    Rachit Sikroria (Microsoft Azure MVP)

    • Proposed as answer by Angie Xu Thursday, June 2, 2016 7:40 AM
    • Marked as answer by Angie Xu Thursday, June 2, 2016 7:40 AM
    Thursday, May 26, 2016 2:24 PM