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

Announcements

News and Announcements icon
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,613 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
    101,973 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,314 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,781 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,356

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans