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

Filter Purchase/Sales order line page by Status

(0) ShareShare
ReportReport
Posted on by 381

Hi!

I think the Sales order line page and Purchase line pages are very useful. However, I am really missing the possibility to filter the lines by Open/Release status for the main order they appear on.

Is there a way to do this without using excel to put togehter Sales order line page and the Sales order page?

I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    92,443 Super User 2025 Season 2 on at
    RE: Filter Purchase/Sales order line page by Status

    Hi, as MahGah said,  status is not in Sales Line.

    So the easiest way is to create a flowfield.

    For example:

    tableextension 80100 SalesLineExt extends "Sales Line"
    {
        fields
        {
            field(50100; Status; Enum "Sales Document Status")
            {
                Caption = 'Status';
                FieldClass = FlowField;
                CalcFormula = lookup("Sales Header".Status where("No." = field("Document No.")));
            }
        }
    }
    
    pageextension 80104 SalesLinesExt extends "Sales Lines"
    {
        layout
        {
            addafter("Document Type")
            {
                field(Status; Rec.Status)
                {
                    ApplicationArea = All;
                }
            }
        }
    }

    pastedimage1642725799873v1.png

    pastedimage1642725807849v2.png

    Hope this will help.

    Thanks.

    ZHU

  • Suggested answer
    MahGah Profile Picture
    15,521 on at
    RE: Filter Purchase/Sales order line page by Status

    Hi

    I checked and status are not in Line. Beside the method you mentioned you need to ask for minor development to add status to line (copy from header to line).

    Or use ODATA in Excel and build the Power Query.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,132

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,615

#3
Sumit Singh Profile Picture

Sumit Singh 2,912

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans