Что делать, если система, с которой интегрирована iScala не умеет принимать xml файлы с именем вида {0ACE4027-AF11-428E-9F59-FE018AA3E3E5}.xml (ей надо без дефисов и без скобок)?
Вот что на эту тему есть в помощи к Epicor Service Connect:
%GUID% — while expanding the template this macro definition is replaced with an unique GUID identifier (for example, {00000305-0000-0000-C000-000000000046}). %DATE(FORMAT)% — while expanding the template this macro definition is replaced with a current date string representation in supplied format (for example, 31.12.2005). Therein FORMAT is the date string representation format, which contains reserved character sequences (dd, mm and either yy or yyyy) with any separator characters (for example, dd-mm-yy or mm.dd.yyyy). %TIME% — while expanding the template this macro definition is replaced with a current time string representation (for example, 23:55). %DATETIME(FORMAT)% — while expanding the template this macro definition is replaced with a combination of current date and current time string representations in supplied format (for example, 31.12.2005 23.55). Therein FORMAT is the date string representation format (see above). %COUNTER% — while expanding the template this macro definition is replaced with a current value of the counter, initialized during channel plugin startup (for example, 25). The %COUNTER% value is unique and is shared between all instances of communication channels. The %COUNTER% value is stored in the «HKEY_LOCAL_MACHINE\SOFTWARE\[Wow6432Node\]Scala Business Solutions NV\Communication Server\1.0\FileNameTemplateCounter» registry value. You can reset it manually.
С помощью %DATETIME(FORMAT)% можно получить файл с именем, например 20170411182122.xml
С помощью %COUNTER% можно получить файлы с именами типа 0.xml, 1.xml, а если поменять значение в регистре, то и 1234567890.xml
А если 2 раза %COUNTER%, то можно получить 12345678911234567892.xml
Не знаю, правда, как это скажется на быстродействии.
Всё это я попробовал: