Hi, I’m trying to do the additional challenges in section 4.7 of the “Constrain Your Data Using XPath” learning path. If I have a request entity with a StartDate, what’s the simplest way to constrain my data on “requests that are older than 1 year”? I can think of a very long-winded way of doing it by looking at the year, month and date fields separately, but there must be a simpler way to do it. Thanks! Maarten PS I’m actually on 9.1.1, but this option isn’t in the dropdown yet!?
Maarten de Vries
Create a datetime variable and name it OneYearAgo, set it to:
Then, set the xpath like this to find all objects with the date before the created date: