web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Time Sheet Line Details not being saved

(0) ShareShare
ReportReport
Posted on by 40

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.
pastedimage1666598540636v1.png

The first line here with 7,5 total hours is read from the external API. Everything seemingly working as intended.

pastedimage1666598563743v2.png

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?

I have the same question (0)
  • Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,003 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,225 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,192

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans