Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/23/2024 09:48 AM - last edited on 05/23/2024 10:57 AM by Dave
Hi Team,
We want to pass the date in 20200516000000.0Z format in AD.
We are currently receiving date in
05/25/2024 11:22 PM
Hi,
We are checking on your request and we will keep you posted.
05/27/2024 04:25 AM
05/26/2024 01:03 AM
Hello Aditya,
Try with this by adding it in your JSON,
"dateFormat": "yyyyMMddHHmmss.0Z"
Thanks,
Nikita Pawar
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.
05/27/2024 04:24 AM - last edited on 05/28/2024 06:56 AM by Sunil
Hi,
We have tried it by hardcoding the value as below
PersonStartDate:20200516000000.0Z, postalCode:null, msDS-cloudExtensionAttribute5:280920230010, departmentNumber:65872P, homeDrive:U:, homeDirectory:\, baseDnt, password=******&6$bBktp, pwdLastSet:0]], connectionString:[LDAP://xxxxxxtest.net:636]]"
getting below error
05/26/2024 08:30 AM
05/27/2024 04:21 AM
Hi @rushikeshvartak,
I want to pass it in ADSI JSON We are getting below error in logs
05/27/2024 09:23 AM
Date.parse("yyyyMMdd", "20240522").format("yyyyMMddHHmmss.0'Z'")
05/28/2024 04:06 AM - edited 05/28/2024 07:51 AM
Hi,
Tried with this "PersonStartDate":"${if(user.customproperty14 == null){''}else{Date.parse("yyyyMMdd", user.customproperty14).format("yyyyMMddHHmmss.0'Z'")}}",
Getting error as below:
User a.PStestdp10 is not activeCannot get property 'url' on null object
Best Regards,
Aditya Chadde
05/28/2024 11:20 AM
"PersonStartDate": "${if (user != null && user.customproperty14 != null) { Date.parse("yyyyMMdd", user.customproperty14).format("yyyyMMddHHmmss.0'Z'") } else { '' }}"
06/03/2024 02:49 AM
"PersonStartDate": "${user?.customproperty14 ? Date.parse('yyyyMMdd', user.customproperty14).format('yyyyMMddHHmmss.0Z') : ''}"
06/10/2024 09:43 AM
Hi @DixshantValecha,
It's not working the date is not getting updated and in the logs we are seeing date is parsed to incorrect format PersonStartDate:20240522000000.0+0000 it should be in 20200516000000.0Z format. and when we are trying with Rushikesh's format date is converted to the correct format but we are getting error as "System.FormatException: String was not recognized as a valid DateTime."
and when we are passing this format from via powershell script it's working but from Saviynt it's not
Best Regards,
Aditya Chadde
06/10/2024 10:38 AM
Re: We want to pass the date in 20200516000000.0Z ... - Saviynt Forums - 95411
06/10/2024 10:46 AM
Hi @rushikeshvartak,
Basic date time conversion is fine but our issue is not resolved yet all the date formats are not working I tried with various formats other than the formats shared by you in json it was working from the start and even tried hardcoding the date with different formats but no luck. We tried with the below formats.
12/15/2023 12:00:00 AM
20240516000000.0Z
20240516000000.0
20240516000000
12-05-2023 12:00:00 AM
2023-07-17T00:00:00.0000Z
Best Regards,
Aditya Chadde
06/10/2024 10:49 AM
Unfortunately i am unable to reply as json.
i have sent new logic
06/10/2024 11:01 AM
Hi,
Provided format is not working getting same error.
Best regards,
Aditya Chadde
06/10/2024 11:06 AM
"PersonStartDate": "${user?.customproperty14 ? new java.text.SimpleDateFormat('yyyyMMdd').parse(user.customproperty14).format('yyyyMMdd000000.0Z') : ''}"