Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/03/2024 06:52 AM
i am trying to set the end date on user side but although i have it in modify user json like this:
"UPDATE NEWUSERDATA NU SET NU.enddate = CASE WHEN NU.customproperty5 = 'I' THEN CURDATE() ELSE NU.enddate END",
in user import json:
"enddate": "d:Exitdate~#~char",
it doesn't work when i run the import user job or the update user job
i also tried :
"UPDATE NEWUSERDATA NU SET NU.enddate = CASE WHEN NU.customproperty5 = 'I' THEN DATE_FORMAT(NU.enddate, '%m/%d/%Y') ELSE NU.enddate END",
full MODIFYUSERDATAJSON:
any ideas ? thank you !
09/03/2024 06:56 AM
Share sample value from API response for Exitdate
09/03/2024 07:06 AM
Hi @Roua in user import JSON you able to fetch the value for enddate with this mapping "enddate": "d:Exitdate~#~char" ? without having enddate in preprocessor?
Regards,
Indra
09/03/2024 07:11 AM
i am sorry, i am not sure for now, bur before we could yes.. i can't tell now in the target system which ones already have an enddate since they are facing some troubles with the perID and i can't fetch he data currently to look it up
09/03/2024 07:14 AM
Date is invalid in response 000000 is invalid date
09/03/2024 07:16 AM - edited 09/03/2024 07:17 AM
this is how it is set in target system and as an example we can look at the start date:
d:Entrydate>19960812</d:Entrydate>
09/03/2024 07:06 AM
09/03/2024 07:15 AM
@Roua
Can you please share the Sample response for single user.
09/03/2024 07:19 AM
you mean what would the expected date be?
<d:Entrydate>19960812</d:Entrydate>
<d:Exitdate>00000000</d:Exitdate>