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...
Suggested Answer

Flow field on Purchase Line Table

(1) ShareShare
ReportReport
Posted on by 82
Hi,
 
I have the following code to extend the item page to display the last purchased date, it works fine:
 
My question is what is the easiest way for this field to also be available to the 'Purchased Line (39)' Table so I can display it on the Purchase Order Subform (54, ListPart) when creating a purchase order without having to go to the item page...
 
 
tableextension 53023 "Item Extension last purchased" extends Item
{
    fields
    {
        field(53023; "Last Purchase Date"; Date)
        {
            Caption = 'Last Purchase Date';
            FieldClass = FlowField;
            CalcFormula = Max("Item Ledger Entry"."Posting Date" WHERE ("Item No." = FIELD("No."),
                                                                         "Entry Type" = FILTER(Purchase),
                                                                         Quantity = FILTER(>0)));
        }
    }
}
pageextension 53023 "Item Card Extension Purchased" extends "Item Card"
{
    layout
    {
        addlast(Item)
        {
            field("Last Purchase Date"; Rec."Last Purchase Date")
            {
                ApplicationArea = All;
                Caption = 'Last Purchase Date';
            }
        }
    }
}
 
 
I have the same question (0)
  • Suggested answer
    Yi Yong Profile Picture
    2,661 Super User 2026 Season 1 on at
    Hello,
     
    You can use FlowField with Lookup.
    tableextension 50000 Table1 extends "Purchase Line"
    {
        fields
        {
            field(50000; "Lookup Field"; Decimal)
            {
                FieldClass = FlowField;
                CalcFormula = lookup(Item."Last Direct Cost" where("No." = field("No.")));
            }
        }
    }
     
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,547 Super User 2026 Season 1 on at
    You can use flowfields and extend the table with tools like Simple Object Designer, requiring minimal coding
  • Suggested answer
    YUN ZHU Profile Picture
    99,598 Super User 2026 Season 1 on at
    Hi, hope the following helps.
    Dynamics 365 Business Central: FlowFields (Sum, Average, Exist, Count, Min, Max, Lookup)
     
    Dynamics 365 Business Central: A flow field is part of the query column list, this is not supported (Flowfield based on Flowfield)
     
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March 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,028 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,121 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 669 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans