Hello,
I am trying to read hours from an external API and add them to timesheets in BC.
My problem is whenever i create a new Time Sheet Line manually, it also erases whatever i have in the Time Sheet Line that is created from the API.
The first line here with 7,5 total hours is read from the external API. Everything seemingly working as intended.
As soon as i add a new line manually, the total hours from the first line is suddenly gone.
I've tried to Commit() the write transactions, and inserted all the entities with .Insert(true) but the error persists. Am i missing something?
Hello,
Hard to say. Does the same thing happen if you created the first line manually and not via the API? And if you create the line via API then close and reopen the Time Sheet, does the same thing happen?
It seems that the new line (OnInsert trigger maybe) modifies the old line somehow.
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... 290,524 Super User 2024 Season 2
Martin Dráb 228,493 Most Valuable Professional
nmaenpaa 101,148