Expression rule returns data when called in Expression rule builder but returns zero rows when called in form rule input

Dear all,

I have an expression rule that returns data alright when I test it in the expression rule builder but when I call it in a form rule input, it returns no data at all.  Here below is my code.  Is there someone I am missing?

Thanks

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

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data