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, ...
Unanswered

How to get data from display method and store in tables

(0) ShareShare
ReportReport
Posted on by

I'm trying to get data from display method and store in tables. So I add that table field in form and enable the filter on it. Thankyou 

Help me to do this..

I have the same question (0)
  • Martin Dráb Profile Picture
    239,152 Most Valuable Professional on at

    What exactly do you need from us? Do you know how to call methods and how to update records?

    Anyway, before you can write any code, you must think about when the value of the field must be recalculated. If just when saving data in this table, simply put your code to insert() and update() (and write a runnable class to update existing records). There call the method and assign the value to a field.

    But the display method may depend on other things as well, e.g. a parameter table or the current date. Then you must recalculate all data when anything like that changes, which can make the whole idea impractical.

    Another approach would be using a view with a computed column, but it's also not practical in all cases. For example, sometimes the display method uses a lot of logic that isn't easily translatable to T-SQL.

    Yet another approach is calculating the values when opening the form and storing the values in a temporary table. It means worse performance of the form, but you don't have to worry about maintaining DB consistency.

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 681

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 218 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans