When we're passing local Datetime values to IFS REST calls we will need to convert format to JSON. Below I'll demonstrate a requirement where we used Workflow to trigger IFS REST API Request.
In here I'll get the current datetime in JavaScript and convert it.
We can get the Current Datetime in JavaScript like below:
To set the value:var isysDate = new java.sql.Timestamp(new java.util.Date().getTime());
Conversion to JSON format:execution.setVariable('SysDate',isysDate);
0 Comments