Hi Dan,
Every incoming message has a date and time stored in the message as BeginTimeStamp
You can check this out by following the steps (See screen shot)
The variable BeginTimeStamp has the date and time in format 'YYYYMMDDHHMMSS' (see screen shot below.
So I tend to use BeginTimeStamp as part of my filename. It is a simple work around.
To consume this, you will need to do the following
- Create a local variable (see screen shot below)
- Insert the xpath to source the date and time from the incoming message
/vpf:Msg/@BeginTimeStamp
- run a test to see the variable has been assigned with the required value.
- Use it as a part of the filename
Example filepath: #F:\B1IF\out\Item-$DateTime.xml
The result: Item-201511112192656.xml
Hope that helps.
Regards,
Tony