Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/04/2024 08:57 AM - edited 08/05/2024 01:00 AM
Hello team,
I'm trying to provision the birthofDate attribute into SAP Successfactor from saviynt. I tried following syntaxes but none of them worked:
1- \"dateOfBirth\":\"${new SimpleDateFormat('yyyy-MM-dd').parse(user.customproperty2).toInstant().toEpochMilli()}\"
2- \"dateOfBirth\":\"${user.customproperty2==null?null: '\"Date('+(new java.text.SimpleDateFormat('yyyy-MM-dd').parse(user.customproperty2)).toInstant().toEpochMilli()+')\"'}\",
3- \"dateOfBirth\":\"${null!=user.customproperty2?'/Date('+new Date(user.customproperty2)..toEpochMilli()+')/':null}\",
The different error messages displayed are:
[This message has been edited by moderator to disable url hyperlink with sensitive info]
08/04/2024 07:58 PM
{
"accountIdPath": "call1.message.d.userId",
"call":[
{
"showlog":"true",
"name":"call1",
"connection":"userAuth",
"url":"https://xxv2/User",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"userId\":\"${user.username!=null?user.username:''}\",\"username\":\"${user.username!=null?user.username:''}\",\"firstName\":\"${user.firstname!=null?user.firstname:''}\",\"lastName\":\"${user.lastname!=null?user.lastname:''}\",\"CUSTOM_IS_MANAGER\":\"${user.customproperty51!=null?user.customproperty51:''}\",\"dateOfBirth\":\"${user.customproperty2!=null?'/Date('+new Date(java.text.SimpleDateFormat('yyyy-MM-dd').parse(user.customproperty2).getTime())+')/':null}\",\"status\":\"${user.statuskey==null?'':user.statuskey==1?'t':''}\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Accept":"application/json"
},
"successResponses": {
"statusCode": [
200,
201
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
405,
403,
500
]
}
}
]
}
08/05/2024 12:57 AM
Hello rushikeshvartak,
It's not worked, the error message displayed below:
08/05/2024 02:18 AM
Does hardcoded DoB is working from saviytn ?
08/05/2024 02:21 AM
Yes it's working.
08/05/2024 02:46 AM
Hello @snafissatou1
Add {"showLogs": true} in Config json
Run the prov job
Check the debug logs with the keyword showlogs to see what is getting passed in the httpParams.