Hi forum!
So we recently found ourselves in need of converting times from user's local time to UTC and other way around in Java script web resource.
To convert time to local time from UTC we used LocalTimeFromUtcTime function in WebAPI like following:
contoso.crm4.dynamics.com/api/data/v9.2/LocalTimeFromUtcTime(TimeZoneCode=@TimeZoneCode,UtcTime=@UtcTime)?@TimeZoneCode=47&@UtcTime=2021-05-05T00:00:00.000Z
and it worked perfectly fine.
But trying to do the opposite conversion we stuck with an issue. The request:
returns the error response:
{
"error": {
"code": "0x8006088a",
"message": "Resource not found for the segment 'UtcTimeFromLocalTime'."
}
}
Could you please help us with this, is UtcTimeFromLocalTime not supported yet in WebAPI, or we use it in not correct way?