I'm writing a custom typescript page for a scan module. When a code is scanned a datetime field on a CRM record needs to be updated.
Here is my code:
XrmQuery.update(x => x.cgk_bonuses,
this.bonusId(),
{ cgk_datescan: new Date() })
.execute(id => { });
Does anyone know what I'm doing wrong for updating a datetime field? Update other fields works fine.