Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Filtering oData page

Posted on by 35

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:

pastedimage1596004448309v1.png

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

  • aitorNAV Profile Picture
    aitorNAV 35 on at
    RE: Filtering oData page

    THnaks for your answer Josh, I dind't realise that the WebServices work in the same way on filtering.

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: Filtering oData page

    You can't filter with a calculated variable on a regular page in the UI. Web service with behave in the same way. If you want to filter with it you'll need a flow field on the table

  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather on at
    RE: Filtering oData page

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans