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
Thanks for your response guys,
I changed the code per below and it is now all good. Does someone know why this is the case?
a!queryEntity( entity: cons!REQ_REQUEST_FLOW_DATA, query: a!query( filter: a!queryFilter( field: "id", operator: "=", value: ri!id ), pagingInfo: a!pagingInfo(1, 1) ), fetchTotalCount: false ).data
Your first code returns entire data subset where as your second code(by using .data) returns list of dictionary, This you can do even in your interface by using ruleinput.data.