web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Power automate flow - ODATA filter

(0) ShareShare
ReportReport
Posted on by 5

Hi, 

I'm trying to create Flow in Power Automate for Business Central but every time I try to use Find Data (v3) to filter, filters are not working. 

I've watched most of tutorials, read documentation for OData in BC and every time I receive an error "Could not find a property name" and have no other idea what else to change. Without filtering flow works correct.  

What I'm trying to do is to get Purchase Invoice Lines in Type= Comment and Description containing "order". 

pastedimage1685351177787v2.png

Error: 

Raw input:

{
    "host": {
        "connectionReferenceName""shared_dynamicssmbsaas",
        "operationId""GetItemsV3"
    },
    "parameters": {
        "bcenvironment""<environment name>",
        "company""<company name>",
        "dataset""v2.0",
        "table""purchaseInvoiceLines",
        "$filter""contains(Description, 'Order') and Document_No eq 'N200230026' and Type eq 'Comment'"
    }
}
I've encounter the same error while filtering PO attachments (I can send all existing attachments by email, but I cannot filter them by Document No. with the same error. 

I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    97,614 Super User 2026 Season 1 on at

    First of all, you are not using OData, but a standard API.

    Your syntax is fine, but the fields in the API are case-sensitive.

    For example,

    pastedimage1685407886460v3.png

    pastedimage1685407684631v1.png

    So, change Description to description, Document_No to documentId, Type to lineType and try again. (Note that there is no Document No in this standard API, only documentId.)

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseinvoiceline_get

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    21,750 Moderator on at

    Please check you have correctly entered the field name as they are case sensitive also put the filter query like below

    (agedAsOfDate eq @{variables('currentDate')}) and (balanceDue gt 0) 

  • Ewa10000 Profile Picture
    5 on at

    Thank you, that solved all of the issues :)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,442 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,207 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,169 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans