After a trigger call to a REST integration link, I am receiving new record information that contains DateTime info in ISO format (MM:DD:YYYYTHH:MM:SSZ).
When I issue rbv_api.createObject call with this value in the record array, an error is thrown indicating only that the array cannot be read (this is very misleading).
As a work-around, I have created a conversion function in the trigger that calls new Date(), gets the TimeZone offset from UTC via getTimezoneOffiset(), and returns the adjusted date to be inserted into the record array.
What is the recommended approach to converting this date into a usable value with the API?
Specifically, how do convert the date to a UTC value to avoid the potential time zone issue without having to include a copy of this function in virtually every integration link response trigger?
Development team is investigating this issue, we will update you shortly.