Retrieving objects from yesterday

4
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?
asked
1 answers
4

I think you could do the following.

  1. Create a DateTime variable with value addDays([%BeginOfCurrentDay%], -1).
  2. 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.

answered