none
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

Answers

  • 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";
    ...etc

    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", "http://schemas.microsoft.com/BizTalk/2003/system-properties", "SFTP");
    pInMsg.Context.Promote("OutboundTransportLocation", "http://schemas.microsoft.com/BizTalk/2003/system-properties", "sftp://Server[:Port]/FolderPath/");

    Refer: https://gallery.technet.microsoft.com/scriptcenter/Dynamic-Send-port-in-5bd03dcc

    http://blogs.biztalk360.com/can-you-use-dynamic-send-port-without-orchestration-yes-you-can/


    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
    Moderator