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

Notifications

Announcements

No record found.

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 387

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)
  • Suggested answer
    MahGah Profile Picture
    15,529 on at

    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.

  • Verified answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,362

#2
YUN ZHU Profile Picture

YUN ZHU 867 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans