Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Which is the best method to insert new field values in a new table in d365fo?

(0) ShareShare
ReportReport
Posted on by 159

Hi experts,

I am working in service management module, I have extended 2 fields in ProjItemTrans table and it saves the value in this table. Now, I have to provide the same value on Invoice as well. The invoice form contains different table which is ProjInvoiceItemDetails and I have added the same fields in the table. I have also found the relation between these two tables. 

So, my question is actually which is the best method to write my code in it inorder to insert those value into the ProjInvoiceItemDetails table? 

I have explored ProjInvoiceItemDetails table and it contains a method by the name of initInvoiceFromProposal() with parameters included in it. So, is the best way to insert my code in the this table method or should I write it in some other datasource methods?

The standard code for initInvoiceFromProposal() table method is also shared below:

pastedimage1676535297808v1.png

Your answers would be highly appreciated. 

Regards,

Arif Hussain.

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: Which is the best method to insert new field values in a new table in d365fo?

    Hi Arif,

    You want to add custom fields to the form, and now that you've finished adding custom fields to the table, I think you can create an extension for the invoice form and then add the table to the data source. There is no need to extend the second 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans