is it possible to put the below expression in query rule where condition?

is it possible to put the below expression in query rule where condition?

month(EMP_HIRE_DATE) &"-"& year(EMP_HIRE_DATE)=year(now()) & month(now())-1

OriginalPostID-199845

OriginalPostID-199845

  Discussion posts and replies are publicly visible

Parents
  • =a!queryEntity(
    entity: cons!MSS_ENTITY_MEETING_FLAT,
    query: a!query(
    logicalExpression: a!queryLogicalExpression(
    operator: "AND",
    filters: {
    if(isnull(ri!month), null, {
    a!queryFilter(
    field: "createdAt",
    operator: ">=",
    value: datetime(year(ri!month), month(ri!month), 1, 0, 0, 0)
    ),
    a!queryFilter(
    field: "createdAt",
    operator: "<=",
    value: datetime(
    year(eomonth(ri!month, 0)),
    month(eomonth(ri!month, 0)),
    day(eomonth(ri!month, 0)),
    23, 59, 59)
    )
    }
    ),
    a!queryFilter(
    field: "cancelled",
    operator: "=",
    value: false
    )
    }
    ),
    pagingInfo: ri!pagingInfo
    )
    )
Reply
  • =a!queryEntity(
    entity: cons!MSS_ENTITY_MEETING_FLAT,
    query: a!query(
    logicalExpression: a!queryLogicalExpression(
    operator: "AND",
    filters: {
    if(isnull(ri!month), null, {
    a!queryFilter(
    field: "createdAt",
    operator: ">=",
    value: datetime(year(ri!month), month(ri!month), 1, 0, 0, 0)
    ),
    a!queryFilter(
    field: "createdAt",
    operator: "<=",
    value: datetime(
    year(eomonth(ri!month, 0)),
    month(eomonth(ri!month, 0)),
    day(eomonth(ri!month, 0)),
    23, 59, 59)
    )
    }
    ),
    a!queryFilter(
    field: "cancelled",
    operator: "=",
    value: false
    )
    }
    ),
    pagingInfo: ri!pagingInfo
    )
    )
Children
No Data