Hi all,
I am trying to create 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 the correct code to do an autosave and to start a Job Queue automatically.
So far my CodeUnit Code is as below:
Hi,
You can try as per below
procedure CopyRows()
var
FromTable: Record "Temp Sales Price";
ToTable: Record "Sales Price";
begin
if FromTable.Find() then
repeat
totable.init;
tottable.transferfields(FromTable);
tottable.insert();
until FromTable.Next() = 0;
end;
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,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156