Expression rule to filter for the last entry of a DB table

Certified Associate Developer

Please forgive me that probably very noob question - but I am really stuck here. My goal is to show just the highest three values in under Tempo > Records.

I have the following (working) code which constructs a expression rule.

 a!queryEntity(
  entity: cons!myENTITY,
  query: a!query(
    logicalExpression: a!queryLogicalExpression(
      operator: "AND",
      filters: {
        a!queryFilter(
          field: "value",
          operator: "=",
          value: 42
        )
      },
      ignoreFiltersWithEmptyValues: true
    ),
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 50
    )
  ),
  fetchTotalCount: false
).data

Instead of 42 I would like to have the three largest values the DB table, but I have no clue how to do that.

  Discussion posts and replies are publicly visible