Hello,
I am working on a custom RPC operation and basically need to send a whole document from FrontEnd to BackEnd. From FE, sending an Activity.Data.Document with dates result in a Exception in BE :
com.mgmtp.a12.dataservices.utils.internal.DocumentModelException: Error while converting the value for the entity instance ... The given string value cannot be converted to a date representation value.
This is because the representation of Date, Time and Datetime in the FE doesn’t match the one in the BE.
As you can see in this first screenshot, which is a native MODIFY_OPERATION, Date and Time types are represented in a way that will be compatible with DocumentConvertor.convertJSONToDocument().
But in this second screenshot (my custom operation), the same document doesn’t make a difference between Date, Time, and DateTime.
I expect there must be a method in the client side which will parse the document data and reformat every date according to the document definition of related fields, but couldn’t find it. Do I need to implement my own ?
I make it work by using another mapper in the BE but I’m curious to know if there was an easier way..

