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

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.