Quantcast
Channel: SCN: Message List - SAP Business One Integration Technology
Viewing all articles
Browse latest Browse all 973

Re: variable $now

$
0
0

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)

Capture the text message.png

The variable BeginTimeStamp has the date and time in format 'YYYYMMDDHHMMSS' (see screen shot below.

IncomingDate_TimeStamp.png

 

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)

          Create Variable to capture the DateTimeStamp.png

 

  • 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.

Test message with new variable.png

  •   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


Viewing all articles
Browse latest Browse all 973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>