Macros

Macros

Macros

Used for filenaming, batchingkey, “flow convoy key” og “transport convoy key”:

  • {uniqueid}  

    • Insert GUID like e.g. 66fcfec6-52f3-413a-8b7a-6a0abdef0c2e

  • {CustomDateTime$<format>} 

    • e.g. ({CustomDateTime$ddMMyyyyhhmmssffff})

  • {CustomXpath$<xpath>} 

    • e.g. ({CustomXpath$/*[local-name()='FlowItem' and namespace-uri()='http://Bestseller.EDI.Artifacts.Schemas.FlowItemOutbound']/Header/Request/SourceID}) 

    • it is possible to apply more than one XPath statement separated by ¤|¤

if the first does not hit a node continue to the next:

  • { context$<ContextName>,<ContextNamespace>} 

  • FILE_{sequence$MinUnikkeSekvens,00000000}.xml” will result in ”FILE_00000001.xml”.

  • {SourceFileName} (Sets the original filename. Require the file come from FILE or FTP)

  • {SourceFileNameNoExt} (Sets the original filename (without the file extension). Require the file come from FILE or FTP)

  • {extension} (Get the default extention based on format type.)

 

Used for MailSubject og Mail body:

  • {Object} ( Get DocumentType name e.g. SalesPriceCatalogue)

  • {DocumentNumber} (Get Document Number e.g. Invoice Number or Despatch Advice number depending on Document type)

  • {SenderName}

Mail subject and body templates are defined in

[EdiPortal].[Presentation].[tDataFieldChoices]

It is important to insert new templates with correct DataFieldsId.

This can be selected by joining

[EdiPortal].[Transport].[tTransportTypes] with [EdiPortal].[Transport].[tTransportTypeFields]

(remember correct Dataowner)

Content on this page:

The information on this page is based on Link 2.10