Hi all,
Currently I am creating a custom table Temporary Sales Price, its purpose is to autosave and write the data from this custom table Temporary Sales Price into the Sales price table of Business Central.
I have planned to use a CodeUnit for copying of field data from the custom Table to the standard Sales price table.
I have problems finding a better code to the current codeunit, which will make it more efficient in copying the correct fields from table Temporary Sales Price to Sales price.
So far my CodeUnit Code is as below:
Hi, I don't know if your table structure is the same as the original one, you can try the following two methods.
Record.Copy(Record [, Boolean]) Method
Record.TransferFields(var Record [, Boolean]) Method:
Hope this helps.
Thanks.
ZHU
Hello,
We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
I will open this up to the community in case they have something to add.
Thanks.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,993 Most Valuable Professional
nmaenpaa 101,156