Click HERE to see how Saviynt Intelligence is transforming the industry. |
03/13/2024 09:04 AM
I want to trigger one call based on the conditional check. i tried few options but stuck with error. However what i observed is connection name is mandatory.
{
"accountIdPath": "accountName",
"responseColsToPropsMap": {
"displayName": "#CONST#${user.displayname}~#~char"
},
"call": [
{
"name": "call1",
"connection": "${if(user.customproperty12 == 'RehireBefore90'){'acctAuth'}else {''}}",
"url": "https://xx.net/Saviynt/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": "{\"script\":\"C:\\\\\\\\Scripts\\\\\\\\rehireuser1.ps1 -useremail \\\"${user.email} \"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/x-www-form-urlencoded",
"successResponses": {
"response[0].CompletedSuccessfully": [
"True"
]
}
},
{
"call": [
{
"name": "call2",
"connection": "${if(user.customproperty12 == 'RehireAfter90'){'acctAuth'}else {''}}",
"url": "https://xx/Saviynt/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": "{\"script\":\"C:\\\\\\\\Scripts\\\\\\\\CreateRemoteUserMailBox1.ps1 -sam \\\"${user.systemUserName}\\\" -upn \\\"${user.email}\\\" \"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/x-www-form-urlencoded",
"successResponses": {
"response[0].EmailAddressPolicyEnabled": [
"True"
]
}
}
]
}
]
}
ERROR :
"call1":{"message":"Ambiguous method overloading for method java.lang.String#<init>.\nCannot resolve which method to invoke for [null] due to overlapping prototypes between:\n\t[class [B]\n\t[class [C]\n\t[class java.lang.String]","status":"Failed"}}
Solved! Go to Solution.
03/13/2024 10:34 AM
syntax error. resolved
03/13/2024 07:38 PM
Can you share updated JSON
05/02/2024 04:41 AM
What is the syntax error that you resolved? can you please share the details?
05/29/2024 03:30 AM
Can you please share the JSON or the details which syntax was throwing error