Skip to main content



No record found.

Dynamics 365 Community / Forums / Finance forum / Adding fields in Total...
Finance forum
Suggested answer

Adding fields in Totals form in D365 FinOps

Posted on by 195


I want to add fields in PurchTotals form commonly known as "Totals". There is no such datasource in the form and the methods in the form are calling PurchTotals classes to get the fields. I'm confused how to add new field there?

Any help or suggestion is appreciated.




  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,417 on at
    RE: Adding fields in Totals form in D365 FinOps

    Hi Ali,

    You can check the methods calcTotals and setDisplayFields in the form. The entire calculations are done in PurchtotalsForm class which is instantiated in the init method. calcTotals calls PurchtotalsForm\calclTotals method calculates all the values.


    Then the setDisplayFields method is called which sets the individual controls in the form with the values from  PurchtotalsForm class. 


    You will have to create CoC on these methods depending on what additional fields you want to display.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans