I'm developing a custom TypeScript page for a scanning module. I need to update a datetime field on a CRM record when a code is scanned.
Check out my code snippet below:
XrmQuery.update(x => x.cgk_bonuses,
this.bonusId(),
{ cgk_datescan: new Date() })
.execute(id => { });
I'm having some trouble updating the datetime field specifically. Other field updates are working fine. Does anyone have any insights or suggestions?