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

Having issues moving data from Items

(4) ShareShare
ReportReport
Posted on by 214
 
I added a field of Inventory Posting Group in these 6 pages
  • Sales Lines
  • Posted Sales Invoice Lines
  • Posted Sales Credit Memo Lines
  • Purchase Lines
  • Posted Purchase Invoice Lines
  • Posted Purchase Cr. Memo Lines
 
 
now the data is moving fine from Items table to these tables but as I have called the procedure in the trigger OnAfterGetRecord of the page extension of these pages so when i check for Inventory Posting Group = '' in these pages its showing not all but many records then out of those records when i filter a document no its showing blank and when I clear the filter for Inventory Posting Group = '' its showing the same records with filled Inventory Posting Group that were showing empty before, so how to resolve this issue
 
 
I have the same question (0)
  • Suggested answer
    Pallavi Phade Profile Picture
    4,124 on at
    Namaste @CU11120629-0
     
    Can you confirm you did the below way. It should work fine 
     
    1) Created field "Inventory Posting group". Added Table Relation to field on tables
    2) Created script to flow Inventory Posting Group code from Item Master on Trigger - "No." - Onafteralidate() - Table 37, 39 
    3) Filters on page should work
     
    OR 
    There is standard field which is present in Table. Can you please verify
     
     
     
    Sales Lines 
     
     
    Warm Regards
    Pallavi Phade
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    Hi, This is a standard field. Did you add a new one? First, I'd like to know what your purpose is.
     
    Thanks
    ZHU
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,603 Super User 2025 Season 2 on at
    This happens because the value is set in OnAfterGetRecord, which is UI-only and not stored in the table. Filtering then shows inconsistent results. Store the value during posting instead of calculating it in the page trigger.

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,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans