Skip to main content

ZenQL search – cheat sheet

Log in to add to favourites

Entries

Edited by me today

javascript
sys.version.modified between(startOfDay(), endOfDay()) and sys.version.modifiedBy = currentUser()

Edited by me this week

javascript
sys.version.modified between(startOfWeek(), endOfWeek()) and sys.version.modifiedBy = currentUser()

Edited by me this month

javascript

Edited by me this year

sys.version.modified between(startOfYear(),endOfYear()) and sys.version.modifiedBy = currentUser()

Awaiting approval

javascript
sys.workflow.state = "awaitingApproval"

Created this month

sys.version.created between(startOfMonth(), endOfMonth())

Published this month

javascript
sys.version.published between(startOfMonth(), endOfMonth())

Archived this month

The Include archive checkbox must be checked to use this query.

javascript
sys.version.archived between(startOfMonth(), endOfMonth())

In draft

javascript
sys.workflow.state = "draft"

Entries not published

javascript
sys.isPublished = false

Published entries

javascript
sys.isPublished = true

Published this week

sys.version.published between(startOfWeek(), endOfWeek())

Published last week

sys.version.published between(startOfWeek(-1), endOfWeek(-1))

Due to be unpublished

This search is only avaliable in the Management API and UI.

javascript
sys.schedules.unpublish exists and sys.schedules.publish.dateTime > now() 

Due to be unpublished in the next month

This search is only avaliable in the Management API and UI.

sys.schedules.unpublish exists and sys.schedules.publish.dateTime between( startOfMonth(1), endOfMonth(1))

Entries due to be published

This search is only avaliable in the Management API and UI.

sys.schedules.publish exists and sys.schedules.publish.dateTime > now()

Translations out of date

This search is only avaliable in the Management API.

sys.translationState = translationOutOfDate and sys.versionStatus = latest

Translations out of date for specific language e.g. Welsh

This search is only avaliable in the Management API.

sys.translationState = translationOutOfDate and sys.versionStatus = latest and sys.language = cy

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request