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

Announcements

No record found.

News and Announcements icon
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. 

  • Verified answer
    YUN ZHU Profile Picture
    103,712 Super User 2026 Season 2 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,812 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 741 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 514 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 336 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans