wm.tn.query:createDocumentQuery Custom TimeInterval

Hi All,

I’m building a reporting reporting to get the the transactions of the last 24 hours for an specif DocumentType.
I’m using the service: wm.tn.query:createDocumentQuery however none of the default options match my needs for the last 24 hours (i could try to query 2 times using TODAY + YESTERDAY but this results on a bigger time frame than the last 24 hours)

Is there a way to create a custom timeInterval for this service?


Hi Jose,

did you try use attribs with two entries for the timestamp, one using BEFORE and one using AFTER operator?

See TN Built-In Services Guide for details.