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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

modifiedField or update not triggering on PurchLine when InventRefId is changed

(2) ShareShare
ReportReport
Posted on by 30

I'm trying to display an info() message whenever InventRefId changes on the PurchLine table. I've added the message in both modifiedField() and update() methods. This works correctly when I change fields like PurchQty or PurchPrice, but not when I change InventRefId—neither method is triggered.Even when calling modifiedField(fieldNum(PurchLine, InventRefId)) explicitly before update(), the message doesn’t show.

Is there a reason why InventRefId behaves differently or doesn't trigger these methods as expected?

InventRefId is nothign but a reference of production order, in some cases user changed the setting using the marking option on the form.

So i want to display a message for them.

Thanks.

I have the same question (0)
  • Suggested answer
    udaY-ch Profile Picture
    5,106 on at
    modifiedField or update not triggering on PurchLine when InventRefId is changed
    Hi
     
    This field is non editable on the front end and keeping your code on modifiedfield method will not work. The reason update method not being called is record updated through doupdate.
     
     
     
    Thanks
    Uday
  • Anton Venter Profile Picture
    20,279 Super User 2025 Season 2 on at
    modifiedField or update not triggering on PurchLine when InventRefId is changed
    The best option is to use the debugger to find out what's going on. Please share your code so we can help you (use the insert code snippet button on the toolbar).

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,351

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 874 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 638 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans