web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Ewa10000 Profile Picture
    5 on at
    RE: Power automate flow - ODATA filter

    Thank you, that solved all of the issues :)

  • Suggested answer
    Nitin Verma Profile Picture
    21,613 Moderator on at
    RE: Power automate flow - ODATA filter

    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) 

  • Verified answer
    YUN ZHU Profile Picture
    90,130 Super User 2025 Season 2 on at
    RE: Power automate flow - ODATA filter

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,669 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,668

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,203

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans