Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 01:01 PM
I am using REST API to import accounts and the date format I am receiving from the API is as follows:
"startDate": "/Date(1597276800000)/",
"endDate": "/Date(253402214400000)/",
How to convert this format to Saviynt date format?
I tried the below approaches but none of them seem to work:
"startdate": "new java.text.SimpleDateFormat('yyyy-mm-dd').parse(new java.time.Instant().ofEpochMilli(1597276800000))~#~date",
"enddate": "new java.text.SimpleDateFormat('yyyy-mm-dd').parse(endDate)~#~date"
Solved! Go to Solution.
04/12/2022 02:12 PM
Hi Arushi,
Please use the datatype epochdate when the target date format is in the epoch. The mapping in ImportAccountEntitlementJSON needs to be done as shown in the below example.
example:
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "name~#~char",
"displayName": "name~#~char",
"customproperty2": "startDate~#~epochdate"
}
Thank you
Vedanth B.K
04/12/2022 02:12 PM
I tried using epochdate as the data type for date but it still did not work.
04/12/2022 02:12 PM
Hi Arushi,
Please mention the version of SSM.
Thank you
Vedanth B.K
04/12/2022 02:12 PM
I am using SSM version 5.4.1
04/12/2022 02:12 PM
Hi Arushi,
The epoch date is supported in the later versions. please raise a ticket for the same.
Thank you
Vedanth B.K