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

Form header table value update

(0) ShareShare
ReportReport
Posted on by 6,480

Hello,

What would be the best method to write a code to update one of the fields of header table based on several lines?

For example, when form is opened, I want to check if one of the lines have specific type and if it has, then I want to update one field on Header.

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    I don't think it makes sense to trigger such code when the form is opened. Because then your data consistency would depend on opening of this form, and not the data of your lines.

    Instead, you should update the header field when a line is inserted or updated, and your criteria is met.

    Or, perhaps even better, write a display method on your header table. This method will return a value that is based on the data on the lines. Then add a display field in your form, to show this data. This way you don't need to maintain this information in the header table.

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 649

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 242 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans