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

Detect change

(1) ShareShare
ReportReport
Posted on by 2,001
Hi,
 
If i want to increment a field on salesTable, when any of the fields on sales table header or salesLine gets changed. But i don't want it to be incremented when someone clicks save on the from without doing anything.
 
Currently code is in update method of table level. Is there a way to handle it other than mentioning all fields one by one but even if i do this this, since code is in header level, how will i detect changes in lines.

Header update method:
this.field+=1;
 
 
line update method: calls header update method
Categories:
I have the same question (0)
  • Suggested answer
    Nisha_Soni_2709 Profile Picture
    97 on at
    Hi,
     
     Use post event handler of update method for the same.
  • Suggested answer
    Sagar121 Profile Picture
    1,188 Super User 2026 Season 1 on at
    Hi, please try this.
     
    if (pmfTableHasChanged(_salesline))
    {
    salesTable.field +=1;
    }
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,815 Super User 2026 Season 1 on at
    Hi ..,

    You can use the next statement to check if there are changes in a record:
     
    if (salesTable == salesTable.orig())
    {
        // increment field
    }
     
  • Suggested answer
    Deepak Agarwal Profile Picture
    8,640 on at
    Try below code in COC of Modified field method, 
     
    if (salesTable == salesTable.orig())
    {
        // your code to increment fieldvalue
    }
     

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 710

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 317 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans