Filtering oData page

Hi everyone,

I have published a page as a webService. In that page, I show one variable that is calculated in the onAfterGetRecord event of the page. But I see that when I try to filter with the URI that variable, is nto working. Just works filtering with the field that are in the table.

Is it possible to filter from that calculated variable? basically I’ve created a variable that is the customer number, and want to filter the contact with a known custoemr number, something like this:

XXXXX:7058/…/ContactAPI eq ‘000010’

Thank you

Sorry the URL is like this:

http:/XXXX:7058/DynamicsNAV110/ODataV4/Company(‘XXXX.’)/ContactAPI?$filter=gCustNo eq ‘000010’