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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Detecting any changes in Avail Physical field in InventSum table

(1) ShareShare
ReportReport
Posted on by 64
I want to detect any changes in Avail Physical field in InventSum table in 365.
I used onUpdated event handler but it's not working perfectly as for example after invoice sales line in sales order,it's not execute the event handler so any suggestions to detect every change in this field?
Categories:
I have the same question (0)
  • Suggested answer
    Sankar Ramalingam Profile Picture
    262 on at
    Each IN and OUT inventory activity in InventSum table will be individual entry. So, OnModified wouldn't be helpful for your case. Explain the use bit more to more suggestion. 
  • Martin Dráb Profile Picture
    239,650 Most Valuable Professional on at
    InventSum is a special case; it uses some hacks, because it's so important for performance and there are risks of blocking. There are things like InventSumDelta involved. Before going deep into this complexity, please explain the business requirement to us, so we're sure that such a thing is really necessary.
     
    Using OnModified event is a bad idea - it's called when a user changes a field value in UI, which never happens with InventSum, and even if it was, it doesn't mean that the modified field value will be saved.
  • CU15021230-0 Profile Picture
    64 on at
    I want to sync with avail physical field in real time any change happened in the avail Physical from whole system I want to detect it
  • Martin Dráb Profile Picture
    239,650 Most Valuable Professional on at
    That's not a business requirement. Please forget your idea about the implementation for a moment and tell us why end-users want to change the application.
     
    For instance, you mention synchronization with something, so maybe users need the information about available quantity on an e-shop or something, so they're able to tell users whether they can order the item. When we have information like this, we can start thinking about the architecture, such as using the Inventory visibility service (instead of any synchronization),
  • CU15021230-0 Profile Picture
    64 on at
    Yes, it's something like e-shop,I want to detect any changes happened in the quantity for specific item to reflect to my application to specify whether the customer can order this item or not at real time 
  • Martin Dráb Profile Picture
    239,650 Most Valuable Professional on at
    In my opinion, you're making a mistake by focusing on a single solution. You should analyze the business requirements, the available solutions and limitations and chose a solution that meets the requirements and can be implement. It seems that you chose a solution before understanding your options, and you chose something that you can't actually implement.
  • CU15021230-0 Profile Picture
    64 on at
    Company x has a physical inventory of a specific items and Company Y has an e-commerce website. Company x wants to sell its own products on company Y's website. Company Y wants to know the exact inventory stock at company X at real time so the e-commerce can  make this items available for new orders or not
  • Suggested answer
    Martin Dráb Profile Picture
    239,650 Most Valuable Professional on at
    First of all, don't automatically accept what users ask for. It sometimes differ from what they actually need. For instance, users usually want all integration synchronous, but they aren't software architects, therefore they don't think about things like performance and throttling, availability (e.g. should all processes stop if F&O is down for maintenance) and so on. It's up to us to find the actual requirements, even those that users aren't aware of, and design a solution that meets them. It's often quite different from what users originally wanted, but it's (hopefully) much more robust and safer.  
     
    If you want to request the data "at real time", then you likely don't want a synchronization. Synchronization has a delay and it's useful when you don't want to make a real-time request every time (but you reuse the synchronized value until the next synchronization).
     
    If asking F&O for the availability every time is the right design for the given requirements, let me again suggest Inventory Visibility Add-in. It's what F&O offers for this scenario. In past, custom services used to be used for this purpose, but the solution from Microsofts adds an extra layer that solves some problems of classic synchronous integration.

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 591

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 550 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 543 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans