Formula una domandaFormula una domanda
 

Con rispostafilename of a batch

  • lunedì 30 novembre 2009 10.47KWeber Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    Hi

    In my project I have to batch edifact messages. The filename of the batched message should contain the sender and the receiver of the data. How can I achive that?
    Klaus Weber

Risposte

  • mercoledì 2 dicembre 2009 12.20callvishnu Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta
    Hi,

    You could possibly use the macros at the send port %DestinationParty% and %sourceparty% to get the custom file names. Below is the list of few other macros.

    To use the macros to assign the custom names to the outbound file.

    Macro name

    Substitute value

    %datetime%

    Coordinated Universal Time (UTC) date time in the format YYYY-MM-DDThhmmss (for example, 1997-07-12T103508).

    %datetime_bts2000%

    UTC date time in the format YYYYMMDDhhmmsss, where sss means seconds and milliseconds (for example, 199707121035234 means 1997/07/12, 10:35:23 and 400 milliseconds).

    %datetime.tz%

    Local date time plus time zone from GMT in the format YYYY-MM-DDThhmmssTZD, (for example, 1997-07-12T103508+800).

    %DestinationParty%

    Name of the destination party. The value comes from message the context property BTS.DestinationParty.

    %DestinationPartyID%

    Identifier of the destination party (GUID). The value comes from the message context property BTS.DestinationPartyID.

    %DestinationPartyQualifier%

    Qualifier of the destination party. The value comes from the message context property BTS.DestinationPartyQualifier.

    %MessageID%

    Globally unique identifier (GUID) of the message in BizTalk Server. The value comes directly from the message context property BTS.MessageID.

    %SourceFileName%

    Name of the file from where the File adapter read the message. The file name includes extension and excludes the file path, for example, foo.xml. When substituting this property, the File adapter extracts the file name from the absolute file path stored in the FILE.ReceivedFileName context property. If the context property does not have a value, for example, if message was received on an adapter other than File adapter, then the macro will not be substituted and will remain in the file name as is (for example, C:\Drop\%SourceFileName%).

    %SourceParty%

    Name of the source party from which the File adapter received the message.

    %SourcePartyID%

    Identifier of the source party (GUID). The value comes from the message context property BTS.SourcePartyID.

    %SourcePartyQualifier%

    Qualifier of the source party from which the File adapter received the message.

    %time%

    UTC time in the format hhmmss.

    %time.tz%

    Local time plus time zone from GMT in the format hhmmssTZD (for example, 124525+530).



    some times in case of EDI these macros wont work, then you need to use below approach for batching and possibly you can change assign above mentioned value [They all are the context properties and available in orchestration]  to change the source file name. I mean read the party names and assign that to "source file name".

    http://www.biztalkgurus.com/blogs/biztalksyn/archive/2009/05/15/outbound-edi-batching-tutorial.aspx

    http://blog.biztalk-info.com/archive/2009/01/29/BizTalk_2006_R2_X12_EDI_Batching.aspx

    Regards
    Vishnu
    Vishnu

Tutte le risposte

  • martedì 1 dicembre 2009 16.05callvishnu Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    Hi,

    Where are you achieving this Batch functionality. Are you using the EDI batching provided under EDI properties for party or you have any custom component.
    I doubt you can achieve this without using out of the box methods.
    Please let me know.

    Regards
    Vishnu
    Vishnu
  • martedì 1 dicembre 2009 22.59KWeber Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    Hi Vishnu


    I am using the EDI Batching provided under the EDI Properties for parties. Even if there is no out of the box method I would be interested in some ideas how other users approach this issue

    Regards
    Klaus Weber
  • mercoledì 2 dicembre 2009 12.20callvishnu Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta
    Hi,

    You could possibly use the macros at the send port %DestinationParty% and %sourceparty% to get the custom file names. Below is the list of few other macros.

    To use the macros to assign the custom names to the outbound file.

    Macro name

    Substitute value

    %datetime%

    Coordinated Universal Time (UTC) date time in the format YYYY-MM-DDThhmmss (for example, 1997-07-12T103508).

    %datetime_bts2000%

    UTC date time in the format YYYYMMDDhhmmsss, where sss means seconds and milliseconds (for example, 199707121035234 means 1997/07/12, 10:35:23 and 400 milliseconds).

    %datetime.tz%

    Local date time plus time zone from GMT in the format YYYY-MM-DDThhmmssTZD, (for example, 1997-07-12T103508+800).

    %DestinationParty%

    Name of the destination party. The value comes from message the context property BTS.DestinationParty.

    %DestinationPartyID%

    Identifier of the destination party (GUID). The value comes from the message context property BTS.DestinationPartyID.

    %DestinationPartyQualifier%

    Qualifier of the destination party. The value comes from the message context property BTS.DestinationPartyQualifier.

    %MessageID%

    Globally unique identifier (GUID) of the message in BizTalk Server. The value comes directly from the message context property BTS.MessageID.

    %SourceFileName%

    Name of the file from where the File adapter read the message. The file name includes extension and excludes the file path, for example, foo.xml. When substituting this property, the File adapter extracts the file name from the absolute file path stored in the FILE.ReceivedFileName context property. If the context property does not have a value, for example, if message was received on an adapter other than File adapter, then the macro will not be substituted and will remain in the file name as is (for example, C:\Drop\%SourceFileName%).

    %SourceParty%

    Name of the source party from which the File adapter received the message.

    %SourcePartyID%

    Identifier of the source party (GUID). The value comes from the message context property BTS.SourcePartyID.

    %SourcePartyQualifier%

    Qualifier of the source party from which the File adapter received the message.

    %time%

    UTC time in the format hhmmss.

    %time.tz%

    Local time plus time zone from GMT in the format hhmmssTZD (for example, 124525+530).



    some times in case of EDI these macros wont work, then you need to use below approach for batching and possibly you can change assign above mentioned value [They all are the context properties and available in orchestration]  to change the source file name. I mean read the party names and assign that to "source file name".

    http://www.biztalkgurus.com/blogs/biztalksyn/archive/2009/05/15/outbound-edi-batching-tutorial.aspx

    http://blog.biztalk-info.com/archive/2009/01/29/BizTalk_2006_R2_X12_EDI_Batching.aspx

    Regards
    Vishnu
    Vishnu