XPath month issue

2
I am trying to retrieve the records of the last month. In xpath I can calculate with periods but strangly I have [%WeekLength%] and [%YearLength%]. Where are the [%MonthLength%]? How do I constrain the xpath from the beginning of the previous month to the end of the previous month? Regards, Ronald
asked
1 answers
6

The month-length item is missing in the documentation. However, it is a valid duration to use in XPath constraints. You can use the following XPath query:

//Module.Entity
[
    Attribute >= '[%BeginOfCurrentMonth%] - [%MonthLength%]'
    and
    Attribute < '[%BeginOfCurrentMonth%]'
]
answered