Macros
General Properties
Language element | Deviations |
|---|---|
Data types | New array data type for handling multiple values (instead of separator-separated strings) |
Variables | Internal system variables are often renamed. Examples would be DOCID DocName DOCDBID DocId STACKID BatchName STACKDBID BatchId |
Constants |
|
Operators | Operator |
Macro parameters | Escape sequences in text parameters no longer supported, some of which might be proprietary (except \n) |
Field macros | Elimination of unnecessary auxiliary functions that replaced operators not yet available in the old macro syntax (e.g., |
File conversion macros |
|
Batch macros | Not implemented |
Field Macros
Macro function | Equivalent |
|---|---|
CheckMandatory | Field macro |
Default | Field property |
ExecBlock | Formulation as a block in curly brackets: |
IfEmptyThen | --- (Alternative: Check and, if necessary, execution using field macros |
IfThen, If, ? | Field macro (Parameter lists of variable length are not supported. Alternatively, these can be formulated as a block.) |
IfThenElse, If, ? | Field macro |
Pause | Field macro |
SelectCase | Field macro |
Macro function | Equivalent |
|---|---|
And | Operator |
Or | Operator |
Contains | Field macro |
IsEmpty | Field macro |
IsEqual | Operator |
IsGreater | Operator |
IsNotEqual | Operator |
IsLess | Operator |
IsLike | Operator |
IsNumber | Field macro |
Not | Operator |
RegExIsMatch | Field macro |
Macro function | Equivalent |
|---|---|
Between | --- |
ConstStr | Formulation as a constant text value |
ExtractCOLD | --- |
FileNamePart |
|
FilterValidChars | Field macro |
Join | Operator |
LCut RCut | Field macros |
Left Right |
|
IndexOf | Field macro |
Length | Field macro |
LFill RFill | Field macros |
Mid | Field macro |
RegExMatch | Field macros |
RegExReplace | Field macro |
RemoveInvalidChars | Field macro |
Replace | Field macro |
ToANSI | --- |
ToLower ToUpper | Field macros |
Trim LTrim RTrim | Field macros |
Macro function | Equivalent |
|---|---|
AddListValue | --- (possible alternative: field macro |
ContainsListValue | --- (possible alternative: field macro |
FilterListValues | --- (possible alternative: field macro |
FirstNonEmptyListValue | --- (possible alternative: |
ForEachListValue | --- (possible alternative: field macro |
ListLength | --- (possible alternative: |
ListValue | --- (possible alternative: |
IndexOfListValue | --- (possible alternative: field macros |
PosValuesToList | --- |
RemoveEmptyListValues | --- (possible alternative: field macro |
RemoveListDuplicates | --- (possible alternative: field macro |
RemoveListValue | --- (possible alternative: field macros |
ReplaceListValue | --- (possible alternative: |
SortList | --- (possible alternative: field macro |
Macro function | Equivalent |
|---|---|
ConstDat | Formulation as a constant date value |
CalendarWeek | --- |
CurrentDate | Field macro |
DateAdd | Field macro |
Day Month Year | Field macro |
DayOfWeek | --- |
FirstDateOfWeek | --- |
IsLeapYear | --- |
LastDateOfMonth LastDateOfPrevMonth FirstDateOfNextMonth | --- |
Timestamp | Combination of |
ToDate | Field macro |
Macro function | Equivalent |
|---|---|
Add | Operator |
Divide | Operator |
CalcGrossAmount | --- |
CalcVatRate | --- |
ConstNum | Formulation as a constant numerical value |
HexToNumber | --- |
Mod | Operator |
Multiply | Operator |
Round | Field macro |
Subtract | Operator - |
ToNegative | --- (Alternative: check whether greater than zero and multiply by -1 if necessary) |
ToNumber | Field macro |
ToPositive | Field macro |
Macro function | Equivalent |
|---|---|
FindFirstMatch | --- (Alternative: Field macro |
FindLastMatch | --- |
FindFirstMatchStartIndex FindFirstMatchStartIndex | --- (Alternative: field macros |
FirstNonEmptyParam | --- |
LookupDB | Field macro |
LookupINI LookupINILike | Field macros |
LookupXInvoiceCode | --- |
Macro function | Equivalent |
|---|---|
ExtractBarcode | Field macro |
ExtractFulltextOCR | Field macro |
ExtractFulltextPDF | Field macro |
ExtractIndex | --- (possible alternative: use index data reader) |
ExtractProperty | Index data reader "Mail" as well as field macros |
Macro function | Equivalent |
|---|---|
BLOBContains | --- (Alternative for PDF files: |
BLOBCount BLOBCountExclude | Field macro |
BLOBName |
|
BLOBProperty | Field macros |
CurrentPos | --- |
DocProperty | Field macro |
IsFirstDoc IsLastDoc | --- |
IsFirstPos IsLastPos | --- |
PosCount | Field macro |
StackID | Field macro |
DocID | Field macro |
StackProperty | --- (Subset of batch properties can be read via |
Macro function | Equivalent |
|---|---|
Break | --- |
Debug | --- |
Defer | Document macro |
Error Suspend Cancel | Document macros |
Log | --- |
Macro function | Equivalent |
|---|---|
AddXMLNode | Field macro |
AggregatesPosFields | --- |
ClassifyImage | --- |
Custom | Custom field macro function (in external DLL file) or custom JavaScript macro function of type "Field" |
Encrypt Decrypt | --- |
FindZUGFeRDFileAttach | Field macros |
FindXInvoiceFileAttach | Field macros |
FindPEPPOLInvoiceFileAttach | Field macros |
EvalKoSITValidatorReport | Field macro |
ExecDBCommand | Field macros |
ExecVB ExecCS | --- Custom field macro function (in external DLL file) or custom JavaScript macro function of type "Field" |
Format | Field macro |
GetFromRestService | Field macro |
GetStackAttribute SetStackAttribute | --- |
GlobalCount | --- (Alternative: field macro |
GlobalCountDB | Field macro |
HTML2Text | --- |
MD5Hash | Field macro |
Random | Field macros |
ShellExecute | --- |
TypeCast | Field macros |
ReadFromCustomStore WriteToCustomStore DeleteFromCustomStore |
(The document macro |
UploadFileXFlowStorage UploadFileXFlowStorageEx | --- |
UUID | Field macro |
WriteToINI | --- |
Document macros
Macro function | Equivalent |
|---|---|
IfThen, If, ? | Field macro |
ExecFieldMacro | Formulation as field assignment |
ForEachIndex | Document macro |
Macro function | Equivalent |
|---|---|
ExtractIndex | --- (possible alternative: use index data reader) |
LookupDB | Document macros |
Macro function | Equivalent |
|---|---|
ForEachPos | Document macro |
AggregatePos | Document macro |
CreateDummyPos | Document macro |
CreateEmptyPos | --- (Possible alternative for only one line to be created: Document macro |
CreatePosByLookupDB | Document macro |
DropAllPos | Document macro |
DropPosOnCondition | Document macro |
ListValuesToPos | --- |
Macro function | Equivalent |
|---|---|
CheckBLOBExists | --- (Alternative: Check and, if necessary, trigger an error via the field macros |
SetFileAttributes | Document macro |
SetFileExternalKey | --- |
Macro function | Equivalent |
|---|---|
ReadFromCustomStore WriteToCustomStore DeleteFromCustomStore |
(The document macro |
PersistFieldContents RestoreFieldContents | --- (currently only possible to persist individual fields via the above macro functions) |
Macro function | Equivalent |
|---|---|
FTPPutFiles | --- |
SendMail SendMailExt SendMailExt2 | --- (possible alternative: "Mail" output system) |
TriggerXFlowClassify | --- |
Macro function | Equivalent |
|---|---|
CopyFile MoveFile | --- |
CreateTextFile | Document macro |
DeleteFile | Document macro |
Macro function | Equivalent |
|---|---|
Break | --- |
Debug | --- |
Defer | Document macro |
Error Suspend Cancel | Document macros |
Log | --- |
Rest | Field macro |
Macro function | Equivalent |
|---|---|
DuplicateFieldContent | --- |
SetStackAttributes | --- |
Custom | Custom document macro function (in external DLL file) or custom JavaScript macro function of type "Document" |
File conversion macros
Macro function | Equivalent |
|---|---|
IfThen, If, ? | Field macro |
Macro function | Equivalent |
|---|---|
ConvAny | File macro |
ConvAnyGdPic | File macro |
ConvByEXE | --- |
ConvByPrinter | --- |
ConvImgFormat | File macro |
ConvMSExcel ConvMSOutlook ConvMSPowerPoint ConvMSWord | File macros |
ConvPdf | File macro |
HTML2PDF | --- (possible alternative: file macro |
Img2PDF | File macro |
PDF2TIF | File macro |
TIF2PDF | File macro |
TIF2PDFOCR | File macro |
TransformXML | File macro |
TransformXInvoiceXML | File macro |
XInvoice2PdfByXRaaS | --- |
Macro function | Equivalent |
|---|---|
AddBarcode AddBarcodePDF | --- |
AddOverlay | --- |
AddWatermark | File macro |
AdjustOrientation | File macro |
ChangePDFVersion | File macro |
DecryptPDF EncryptPDF | File macros |
OptimizeImage | --- |
PDF2PDFA | File macro |
PDF2PDFOCR | File macro |
ReducePDF | --- |
ResizeImage | File macro |
ResizePDF | --- |
Macro function | Equivalent |
|---|---|
DeletePDFPages | File macro |
MultiPDF MultiTIF |
|
RemoveBlankPages | File macro |
SinglePDFs SingleTIFs | File macros (no support for the boundary of the area on the side) |
SplitByBarcode | File macro (no transfer of information to target fields supported) |
Macro function | Equivalent |
|---|---|
EmbedPDF | --- |
EmbedZUGFeRD | --- |
ExtractMail | Input Format "Mail" (no support for multiple nested embedded mails) |
ExtractP7M | --- |
ExtractPEPPOLInvoice ExtractXInvoice ExtractZUGFeRD | Input formats "PeppolInvoice", "XRechnung" and "Zugferd" |
ExtractPDF | File macro |
ExtractPDFImages | --- |
ExtractPDFPages ExtractTIFPages | File macro |
UnZip | File macro (no support for encrypted ZIP files) |
ZipFile | File macros |
Macro function | Equivalent |
|---|---|
AddFile | File macro |
AddFileFromField | File macro |
AddFileFromURL | File macro |
CreateDOC | Output format "MsWord" |
CreateFulltextFile | --- |
CreateKoSITValidatorReport CreateKositValidatorReportByWebService | File macro |
CreatePeppolDoc CreateXRechnungDoc | File macros |
DownloadFileXFlowStorage | --- |
TXT2PDF | --- |
Macro function | Equivalent |
|---|---|
Custom | --- |
Dummy | --- |
Rename | File macro |
Sort | --- |
StoreFile | Document macro |
Global macros
Macro function | Equivalent |
|---|---|
CleanupFileStorage | --- |
DeleteFileAfterDays DeleteFolderAfterDays | global macros |
DeleteFolderIfEmpty | global macro |
MoveFileAfterDays MoveFolderAfterDays | --- |
RenameFileAfterDays | --- |
Macro function | Equivalent |
|---|---|
BackupDatabase | --- |
CompactMongoDB | --- |
DeleteLogRecordAfterDays | global macro |
DeleteStackRecordAfterDays | global macro |
Macro function | Equivalent |
|---|---|
FTPGetFiles FTPPutFiles | --- |
Macro function | Equivalent |
|---|---|
LogResourceUsage | --- |
LogThreadStates | --- |
StartWatcher | --- |
ThreadMonitor | --- |
Macro function | Equivalent |
|---|---|
ShellExecute | --- |
UnZipFile ZipFile | --- |