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

Having issues moving data from Items

(7) ShareShare
ReportReport
Posted on by 332
 
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
    5,420 Super User 2026 Season 1 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
    99,084 Super User 2026 Season 1 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
    22,128 Super User 2026 Season 1 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.
  • Gerardo Rentería García Profile Picture
    25,555 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Dynamics 365 Business Central: How to flow/pass custom field values | Dynamics 365 Lab

    Best Regards
    Gerardo

  • Suggested answer
    Kamal Khakhkhar Profile Picture
    2,915 on at
    Hii There as per @YUN ZHU Blog shared By @Gerardo Rentería García you can go through your requirement . 
    If Possible Go With base fields if you don't want more complex solution .only use if Base feature is not as much optimize as per your requirement.
     
    If You got your answer mark it answered.
    Thank You,
    Kamal Khakhkhar
  • CU11120629-0 Profile Picture
    332 on at
    I found the field for Inventory posting group but the same is happening for Salesperson code when I did this below code
     
     
     
    The same issue is happening as below
     
     
    First see the salesperson code is empty for some lines then i opened these lines then when i click back and opened the same page again
     
     
    The record is now updated itself so please guide how to solve this issue as its reflecting issue in a report where the report is group by Salesperson code

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,946 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,177 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 555 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans