Retrieving objects from yesterday
I would like to retrieve a list of let's say Orders that were processed yesterday. So I would like to import orders on 26-08-2009 that have a transaction date of 25-08-2009, how would I do this?
I think you could do the following.
- Create a DateTime variable with value
- Create a retrieve activity with XPath constraint
[dateAttribute => $DateTimeVariable][dateAttribute < '[%BeginOfCurrentDay%]']
Instead of the DateTime variable you could also use
[dateAttribute => '[%BeginOfCurrentDay%] - [%DayLenght%]'] in your XPath constraint.
Roy van der Valk