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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Business Central Find ...
Power Automate
Unanswered

Business Central Find purchase lines

(0) ShareShare
ReportReport
Posted on by 5

Hi all,

 

I am trying to find purchase order lines in Business Central with the standard API and the find record action.

 

First i find my Purchase order and then i find my purchase order lines with the next filter Document-ID eq 'ID' where ID come from the previous find purchase order action.

 

It keeps telling me that there is an error on position 9 meaning the "-"symbol.

I dont thing there is an errr anywhere, is this a bug in the find Records of the Business Central connector?

 

MarkPeeters_0-1679488653863.png

 

"Syntax error at position 9 in 'Document-id eq '938dfe78-90ed-ec11-82f8-000d3a2062d7''."

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @MarkPeeters,

    It seems like that you have referred to a wrong field name.

     

    Could you please remove the expression within the FilterQuery and run the flow, check the output from this action and find out the real field name of this Document-ID?

  • M Peeters Profile Picture
    5 on at

    Hi Qi,

     

    This is what i normally do. And that works for every table except Purchaseorderlines eand saleorderlines.

    If i execute a find records on the purchaselines without a query i get this error.

    ErrorCode: Application_DialogException You must specify an Id or a Document Id to get the lines. CorrelationId: e9965115-d679-404f-b321-87ac7f5f4012.
    clientRequestId: fc2b4577-2fce-4ee8-bf8b-ae1ae1d60f4b

     

    It looks like a bug in the api to me.

     

    Please advice

  • preeteebeefeya Profile Picture
    4 on at

    I confirm that it is still not working

     

  • dejadpower Profile Picture
    40 on at

    hi

     

    you just have to use the filter query as documentId eq SELECT ID COLUMN

     

    note after eq , there is no quotes surrounding the Id column

  • PejuangPower Profile Picture
    5 on at
    Great,, The quote is the problem, Thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 315 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 273 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 117 Super User 2026 Season 1

Last 30 days Overall leaderboard